카테고리 없음
[python][백준/BOJ] 25191번 : 치킨댄스를 추는 곰곰이를 본 임스
haju
2023. 12. 2. 17:25
https://www.acmicpc.net/problem/25191
25191번: 치킨댄스를 추는 곰곰이를 본 임스
콜라 $4$개, 맥주 $2$개로 치킨을 $4$마리까지 먹을 수 있지만, 치킨집에 치킨이 $3$마리밖에 없으므로 임스도 $3$마리까지만 먹을 수 있다.
www.acmicpc.net
n=int(input())
a,b=map(int,input().split())
result=a//2+b
if result>n:
print(n)
else:
print(result)