Rectangles
1028C1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
30 0 1 11 1 2 23 0 4 1
Output
1 1
Sample 2of 4
Input
30 0 1 10 1 1 21 0 2 1
Output
1 1
Sample 3of 4
Input
40 0 5 50 0 4 41 1 4 41 1 4 4
Output
1 1
Sample 4of 4
Input
50 0 10 81 2 6 72 3 5 63 4 4 58 1 9 2
Output
3 4
58%
1028C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)