Count The Rectangles
1194E2200· master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
7-1 4 -1 -26 -1 -2 -1-2 3 6 32 -2 2 44 -1 4 35 3 5 15 2 1 2
Output
7
Sample 2of 2
Input
51 5 1 00 1 5 15 4 0 44 2 4 04 3 4 5
Output
0
58%
1194E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)