페이지

10214번: Baseball

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


$O(t)$


#include<cstdio>
int t;
int main() {
    scanf("%d", &t);
    while (t--) {
        int a = 0, b = 0;
        for (int i = 0, x, y; i < 9; i++) scanf("%d %d", &x, &y), a += x, b += y;
        puts(a == b ? "Draw" : a > b ? "Yonsei" : "Korea");
    }
    return 0;
}

댓글 없음 :

댓글 쓰기