cf/mirror

XOR Sorting (Hard Version)

CF
2247D22s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
2 0
1 2
2 1
1000000000 999999999
1 1000000000
6 2
2 5 3 4 1 6
1 2
4 5
Output
0
1
0
4
4
0
2247D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)