cf/mirror

Nezzar and Hidden Permutations

CF
1477D2800· international gm5s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
4 2
1 2
3 4
6 4
1 2
1 3
3 5
3 6
2 1
1 2
Output
1 2 3 4
3 4 1 2
2 3 4 1 6 5
1 4 3 2 5 6
1 2
1 2
1477D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…