cf/mirror

Trees and XOR Queries Again

CF
1902F2400· grandmaster6.5s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
0 1 2 10
2 1
3 2
4 2
8
3 3 0
3 4 1
3 4 7
1 3 1
1 3 2
1 3 10
1 4 10
1 4 11
Output
YES
YES
NO
YES
YES
NO
YES
YES
1902F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…