728x90
반응형
단순 사칙연산 문제이다.
L, R, A = map(int, input().split())
a, b = min(L, R), max(L, R)
t = min(A, b-a)
a += t
A -= t
res = a*2 + (A//2*2 if A else 0)
print(res)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 15781번 헬멧과 조끼(python) (0) | 2021.02.27 |
---|---|
백준 알고리즘 15780번 멀티탭 충분하니?(python) (0) | 2021.02.27 |
백준 알고리즘 15667번 2018 연세대학교 프로그래밍 경진대회(python) (0) | 2021.02.27 |
백준 알고리즘 15372번 A Simple Problem.(python) (0) | 2021.02.27 |
백준 알고리즘 12174번 #include <Google I/O.h>(python) (0) | 2021.02.26 |