https://www.acmicpc.net/problem/17826
Python Code
GPA = []
GPA += ['A+'] * 5
GPA += ['A0'] * 10
GPA += ['B+'] * 15
GPA += ['B0'] * 5
GPA += ['C+'] * 10
GPA += ['C0'] * 3
GPA += ['F'] * 2
score_list = list(map(int, input().split()))
hong = int(input())
print(GPA[score_list.index(hong)])
'Programming [Python] > 백준 알고리즘 솔루션' 카테고리의 다른 글
#237 백준 파이썬 [10991] 별 찍기 - 16 (0) | 2019.12.01 |
---|---|
#236 백준 파이썬 [10797] 10부제 (0) | 2019.12.01 |
#234 백준 파이썬 [5532] 방학 숙제 (0) | 2019.12.01 |
#233 백준 파이썬 [11656] 접미사 배열 (0) | 2019.12.01 |
#232 백준 파이썬 [1094] 막대기 (0) | 2019.12.01 |