728x90
반응형
단순 구현 문제이다.
for _ in range(int(input())):
s, n = input().split()
n = int(n)
if n >= 97: res = "A+"
elif n >= 90: res = "A"
elif n >= 87: res = "B+"
elif n >= 80: res = "B"
elif n >= 77: res = "C+"
elif n >= 70: res = "C"
elif n >= 67: res = "D+"
elif n >= 60: res = "D"
else: res = "F"
print(s, res)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 2075번 N번째 큰 수(python) (0) | 2021.04.07 |
---|---|
백준 알고리즘 21335번 Another Eruption(python) (0) | 2021.04.04 |
백준 알고리즘 11319번 Count Me In(python) (0) | 2021.03.25 |
백준 알고리즘 11104번 Fridge of Your Dreams(python) (0) | 2021.03.25 |
백준 알고리즘 17173번 배수들의 합(python) (0) | 2021.03.25 |