honey_pot

[python] 백준 10103번 본문

카테고리 없음

[python] 백준 10103번

_tera_ 2021. 6. 8. 00:41

n = int(input())
cy = sd = 100
for _ in range(n):
    a, b = map(int, input().split())
    if a > b:
        sd -= a
    elif a == b:
        pass
    else:
        cy -= b
print(cy)
print(sd)
Comments