cf/mirror

Searching Rectangles

CF
713B2200· master1s256 MB⇄ interactive

Examples

Sample 1of 1
Input
5
2
1
0
1
1
1
0
1
Output
? 1 1 5 5
? 1 1 3 3
? 1 1 3 1
? 2 2 2 2
? 3 3 5 5
? 3 3 3 5
? 3 3 3 4
? 3 4 3 5
! 2 2 2 2 3 4 3 5
713B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)