-Code
grade = [0]
grade += list(map(int, input().split()))
hongik = int(input())
res = grade.index(hongik)
if res < 6:
print("A+")
elif res < 16:
print("A0")
elif res < 31:
print("B+")
elif res < 36:
print("B0")
elif res < 46:
print("C+")
elif res < 49:
print("C0")
else:
print("F")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 16172번 나는 친구가 적다 (Large) (0) | 2022.08.24 |
---|---|
[백준/파이썬] 3183번 Dates (0) | 2022.08.23 |
[백준/파이썬] 11575번 Affine Cipher (0) | 2022.08.21 |
[백준/파이썬] 17249번 태보태보 총난타 (0) | 2022.08.20 |
[백준/파이썬] 20528번 끝말잇기 (0) | 2022.08.19 |