| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 139 | 111 | 105 | 80.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.
87 93 90
A
91 78 56
C
School > CS@Mines > CS@Mines HSPC 2025 B번