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
반응형

+ Recent posts