cf/mirror

The Fair Nut and Rectangles

CF
1083E2400· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3
4 4 8
1 5 0
5 2 10
Output
9
Sample 2of 2
Input
4
6 2 4
1 6 2
2 4 3
5 3 8
Output
10
1083E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)