728x90
반응형
단순 수학 문제이다.
Ca, Ba, Pa = map(int, input().split())
Cr, Br, Pr = map(int, input().split())
ans = max(0, Cr-Ca) + max(0, Br-Ba) + max(0, Pr-Pa)
print(ans)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 15128번 Congruent Numbers(python) (0) | 2021.02.07 |
---|---|
백준 알고리즘 15080번 Every Second Counts(python) (0) | 2021.02.07 |
백준 알고리즘 15051번 Máquina de café(python) (0) | 2021.02.07 |
백준 알고리즘 15048번 Jogo de Boca(python) (0) | 2021.02.07 |
백준 알고리즘 15025번 Judging Moose(python) (0) | 2021.02.07 |