[백준] 2455번 : 지능형 기차 - Python(파이썬)

강재원·2022년 9월 21일
0

[코딩테스트] Python

목록 보기
60/200



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

sum=0
max=0
for i in range(4):
    a,b=map(int,input().split())
    sum+=-a+b
    if sum>=max: max=sum
print(max)
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글