본문 바로가기

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

#188 백준 파이썬 [10214] Baseball - 고연전

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

 

#Solution

T = int(input())
for _ in range(T):
    Y = K = 0
    
    for _ in range(9):
        y, k = map(int, input().split())
        Y += y
        K += k
    
    if Y > K:
        print('Yonsei')
    elif Y < K:
        print('Korea')
    else:
        print("Draw")