cf/mirror

Chess Match

CF
1431E2000· candidate master2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
4
1 2 3 4
1 2 3 4
2
1 100
100 101
2
1 100
50 51
5
1 1 1 1 1
3 3 3 3 3
Output
3 4 1 2
1 2
2 1
5 4 2 3 1
1431E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)