cf/mirror

Count The Rectangles

CF
1194E2200· master2s256 MB⌨ stdin/stdout

Examples

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