본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#345 백준 파이썬 [2490] 윷놀이

https://www.acmicpc.net/problem/2490

 

PYTHON CODE

yut = [sum(list(map(int, input().split()))) for _ in range(3)]

for score in yut:
    if score == 0:
        print('D')
    elif score == 1:
        print('C')
    elif score == 2:
        print('B')
    elif score == 3:
        print('A')
    elif score == 4:
        print('E')