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

34282번 - Fair Grading 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB13911110580.153%

문제

It is well known that Mines students have problems with adding. The complex algorithms they learn crowd out basic arithmetic operations. Thus, the Mines professors asked you to automate the calculation and assignment of final letter grades in order to stop the teaching assistants from messing up everyone's grades! Given a student's two midterm exam grades $x$ and $y,ドル as well as their final exam grade $z,ドル calculate their final letter grade for the class. Midterm exams are worth 25ドル\%$ of the final grade each, and the final exam is worth the remaining 50ドル\%$. Note that no plus or minus grades are given, so all scores [90ドル\%,ドル 100ドル\%$] get A's, all scores [80ドル\%,ドル 90ドル\%$) get B's, all scores [70ドル\%,ドル 80ドル\%$) get C's, all scores [60ドル\%,ドル 70ドル\%$) get D's, and all scores [0ドル\%,ドル 60ドル\%$) get F's.

입력

The input consists of a single line containing three integers, $x,ドル $y,ドル and $z$ $(0 \leq x,y,z \leq 100)$---the student's grades on the first midterm, second midterm, and final exam, respectively.

출력

The first and only line of output should contain a single character, the letter grade achieved by the student.

제한

예제 입력 1

87 93 90

예제 출력 1

A

예제 입력 2

91 78 56

예제 출력 2

C

힌트

출처

School > CS@Mines > CS@Mines HSPC 2025 B번

  • 문제를 만든 사람: Adeline Greene
(追記) (追記ここまで)

출처

대학교 대회

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

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