cf/mirror

Something with XOR Queries

CF
870D2000· candidate master2s256 MB⇄ interactive

Examples

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