cf/mirror

Rectangle Arrangement

CF
2027A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
5
1 5
2 4
3 3
4 2
5 1
3
2 2
1 1
1 2
1
3 2
3
100 100
100 100
100 100
4
1 4
2 3
1 5
3 2
Output
20
8
10
400
16
2027A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)