cf/mirror

Circle of Numbers

CF
263C2000· candidate master2s256 MB⌨ stdin/stdout

Examples

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