cf/mirror

Sergey's problem

CF
1019C3000· legendary gm2s256 MB⌨ stdin/stdout

Examples

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