XOR, Tree, and Queries
1788F2500· grandmaster3s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 41 22 33 41 4 32 4 21 3 12 3 1
Output
No
Sample 2of 3
Input
6 21 22 33 42 55 61 4 22 6 7
Output
Yes4 2 4 1 6
Sample 3of 3
Input
6 21 22 33 42 55 61 4 31 6 5
Output
Yes6 1 4 3 0
58%
1788F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…