cf/mirror

Palindromic Paths

CF
1205C2400· grandmaster1s256 MB⇄ interactive

Examples

Sample 1of 1
Input
3
0
1
0
1
1
1
1
Output
? 1 1 1 3
? 1 1 2 3
? 2 1 2 3
? 3 1 3 3
? 2 2 3 3
? 1 2 3 2
? 1 2 3 3
!
100
001
000
1205C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)