본문 바로가기
python-algorithm

백준 11367 Report Card Time

by 무적김두칠 2022. 1. 19.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
for i in range(int(input())):
    name,score=input().split()
    score=int(score)
    if score>=97 :grade='A+'
    elif score>=90 :grade='A'
    elif score >= 87: grade = 'B+'
    elif score >= 80: grade = 'B'
    elif score >= 77: grade = 'C+'
    elif score >= 70: grade = 'C'
    elif score >= 67: grade = 'D+'
    elif score >= 60: grade = 'D'
    else : grade = 'F'
    print(name,grade)
 
cs

 

반응형

'python-algorithm' 카테고리의 다른 글

백준 2755 이번학기 평점은 몇점?  (0) 2022.01.28
백준 4562 No Brainer  (0) 2022.01.27
백준 11944 NN  (0) 2022.01.19
백준 2857 FBI  (0) 2022.01.19
백준 2902 KMP는 왜 KMP일까?  (0) 2022.01.19

댓글