새소식

Algorithm/Acmicpc.net (백준)

[python] : 백준 : 치킨댄스를 추는 곰곰이를 본 임스 (25191번)

  • -
n = int(input())
coke, beer = map(int, input().split())
coke /= 2
chicken = coke + beer
if chicken > n:
    chicken = n
print("%d" % chicken)
Contents

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

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