1
2
3
4
5
6
|
l,r,a=map(int, input().split())
while a>0:
if l>r: r+=1
else: l+=1
a-=1
print( min(l,r)*2)
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 23795 사장님 도박은 재미로 하셔야 합니다 (0) | 2022.03.10 |
---|---|
백준 23348 스트릿 코딩 파이터 (0) | 2022.03.10 |
백준 20361 일우는 야바위꾼 (0) | 2022.03.08 |
백준 15633 Fan Death (0) | 2022.03.08 |
백준 21612 Boiling Water (0) | 2022.03.08 |
댓글