1
2
3
4
5
6
7
|
def sol(n,a,b):
return min(n,a//2+b)
n=int(input())
a,b = map(int, input().split())
print(sol(n,a,b))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
codeforces 1A - Theatre Square (0) | 2022.05.25 |
---|---|
codeforces 231A - Team (0) | 2022.05.25 |
백준 24883 자동완성 (0) | 2022.05.25 |
백준 24723 녹색거탑 (0) | 2022.05.25 |
백준 24309 РАВЕНСТВО (0) | 2022.05.24 |
댓글