본문 바로가기
python-algorithm

백준 15734 명장 남정훈

by 무적김두칠 2022. 3. 10.

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
반응형

댓글