cf/mirror

Rectangles

CF
1028C1600· expert2s256 MB⌨ stdin/stdout

Examples

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