백준 풀이

백준 2875번 파이썬

ag2개발자 2022. 8. 24. 13:43
a,b,c = map(intinput().split())
while True:
    if c==0break
    if a>2*b:
        a-=1
    else:
        b-=1
    c-=1
if a>2*b:
    print(b)
else:
    print(a//2)

'백준 풀이' 카테고리의 다른 글

백준 10820번 파이썬  (0) 2022.08.24
백준 10170번 파이썬  (0) 2022.08.24
백준 10824번 파이썬  (0) 2022.08.24
백준 10798 파이썬  (0) 2022.08.24
백준 10807 파이썬  (0) 2022.08.24