새소식

Algorithm/Acmicpc.net (백준)

[python] 백준 : 치킨 두 마리 (14489번)

  • -
a, b = map(int,input().split())
c = int(input())
if a+b >= c*2:
    print(a+b - c*2)
else:
    print(a+b)
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.