← Back to List

30017번: 치즈버거 만들기 ↗

Solutions

Python 3
61 B | 61 chars
a, b = map(int, input().split())
print(min(a - 1, b) * 2 + 1)