-
Notifications
You must be signed in to change notification settings - Fork 2
pieceofcake2
bradendubois edited this page Jun 9, 2021
·
6 revisions
ID: pieceofcake2
Difficulty: 1.4
CPU Time: 1 second
Memory: 1024 MB
Some basic geometry shows each of the areas, which consist of (v, h), (n-v, h), (v, n-h), and (n-v, n-h). Since all 4 areas are possibly included, some simplification can be done such that the biggest area is max(v, n-v) * max(h, n-h) * 4 (the height).