← Back to List

27225번: Класс ↗

Solutions

Python 3
110 B | 110 chars
a = int(input())
b = int(input())

s = min(a, b)
s2 = max(a - s, b - s)

s *= 2
if s2 % 2:
  s += 1

print(s)