← Back to List
27213번: Граничные клетки ↗
Solutions
Python 3
103 B | 103 chars
a = int(input()) b = int(input()) if a == 1 or b== 1: print(a* b) else: print((a + b) * 2 - 4)