반응형
문제 설명
https://www.acmicpc.net/problem/2455
제출한 코드
su =0
sumax =0
for i in range(4):
a,b=map(int,input().split())
su -= a
su += b
if su>sumax :
sumax = su
print(sumax)
결과

후기
반응형
'BQJ 백준 > python' 카테고리의 다른 글
[Python/파이썬] 백준 2480번: 주사위 세개 (0) | 2024.06.20 |
---|---|
[Python/파이썬] 백준 2475번: 검증수 (0) | 2024.06.20 |
[Python/파이썬] 백준 2444번: 별 찍기 - 7 (0) | 2024.06.17 |
[Python/파이썬] 백준 2443번: 별 찍기 - 6 (0) | 2024.06.17 |
[Python/파이썬] 백준 2442번: 별 찍기 - 5 (0) | 2024.06.17 |