[백준]B3-2875

py_code·2021년 1월 8일
0

백준-브론즈3

목록 보기
37/38

n, m, k = map(int, input().split())
cnt = 0
while n >= 0 and m >= 0 and n + m >= k:
    n -= 2
    m -= 1
    cnt += 1
print(cnt - 1)
profile
개발자를 꿈꿉니다.

0개의 댓글