본문 바로가기
Algorithm/Implementaion

[백준] 2875번 대회 or 인턴

by 등촌동 꼬북이 2020. 11. 23.

쉬운 문제...

 

쉬운데 왤캐 오래걸렸지..

 

# 2875번
ans = 0
N, M, K = map(int, input().split())
while True:
        N -= 2
        M -= 1
        if N < 0 or M < 0 or N + M < K:
            break
        ans += 1
print(ans)

'Algorithm > Implementaion' 카테고리의 다른 글

[백준] 7568번 덩치  (0) 2020.11.25
[백준] 5622번 다이얼  (0) 2020.11.24
[백준] 10103번 주사위 게임  (0) 2020.10.20
[백준] 2480번 주사위 세개  (0) 2020.10.20
[백준] 2935번 소음  (0) 2020.10.20

댓글