1
2
3
4
5
6
7
8
9
|
import sys
scoreChang=100
scoreSang=100
for _ in range(int(sys.stdin.readline())):
a,b=map(int,sys.stdin.readline().split())
if a<b: scoreChang-=b
if a > b: scoreSang -= a
print(scoreChang)
print(scoreSang)
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 10409 (0) | 2020.12.25 |
---|---|
[백준] 10520 (0) | 2020.12.25 |
[백준] 9610 (0) | 2020.12.25 |
[백준] 9550 (0) | 2020.12.25 |
[백준] 9501 (0) | 2020.12.24 |
댓글