← Back to List

17874번: Piece of Cake! ↗

Solutions

Python 3
78 B | 78 chars
X,a,b=map(int,input().split())
print(4*max([a*b,a*(X-b),(X-a)*b,(X-a)*(X-b)]))