본문 바로가기
python-algorithm

[백준] 2455

by 무적김두칠 2020. 12. 18.

1
2
3
4
5
6
7
8
import sys
ans=0
tmp=[]
for i in range(4):
    a,b=map(int,sys.stdin.readline().split())
    ans=ans-a+b
    tmp.append(ans)
print(max(tmp))
cs
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 2476  (0) 2020.12.18
[백준] 2460  (0) 2020.12.18
[백준] 2446  (0) 2020.12.18
[백준] 2445  (0) 2020.12.18
[백준] 2444  (0) 2020.12.18

댓글