|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||256 MB||81||60||49||75.385%|
Little hobbitses go to hobbit school in the Shire. They just finished a course, which involved tea-making, meal-eating, nap-taking, and gardening. Based on the following grading scale, assign each hobbit a letter grade based on their final numerical course grade.
The input will begin with a single line containing just a whole number, n, of the number of hobbits in the class, followed by n lines in the form a b, where a is the hobbit’s name (only alphabetical characters) and b is the hobbit’s grade, given as a whole number.
For each test case, print out a list of every hobbits name and letter grade, each on its own line. There should be no additional white space following test cases.
5 Bilbo 13 Sam 90 Pippin 78 Frodo 97 Merry 70
Bilbo F Sam A Pippin C+ Frodo A+ Merry C