Logo
(追記) (追記ここまで)

11367번 - Report Card Time 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB23651765165275.849%

문제

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.

  • A+: 97-100
  • A: 90-96
  • B+: 87-89
  • B: 80-86
  • C+: 77-79
  • C: 70-76
  • D+: 67-69
  • D: 60-66
  • F: 0-59

입력

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. The length of hobbit's name is less than 10.

출력

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.

제한

예제 입력 1

5
Bilbo 13
Sam 90
Pippin 78
Frodo 97
Merry 70

예제 출력 1

Bilbo F
Sam A
Pippin C+
Frodo A+
Merry C

힌트

출처

School > University of Virginia High School Programming Contest > UVa HSPC 2014 C번

  • 빠진 조건을 찾은 사람: jaehoo1
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /