머쓱타드..
import sys
N = int(sys.stdin.readline())
x = 100
y = 100
for _ in range(N):
t1, t2 = map(int, sys.stdin.readline().split())
if t1 > t2:
y -= t1
elif t1 == t2:
continue
else:
x -= t2
print(x)
print(y)
'Algorithm > Implementaion' 카테고리의 다른 글
[백준] 5622번 다이얼 (0) | 2020.11.24 |
---|---|
[백준] 2875번 대회 or 인턴 (0) | 2020.11.23 |
[백준] 2480번 주사위 세개 (0) | 2020.10.20 |
[백준] 2935번 소음 (0) | 2020.10.20 |
[백준] 2530번 인공지능 시계 (0) | 2020.10.20 |
댓글