cf/mirror

Harry Potter and Moving Staircases

CF
65E2900· international gm2s256 MB⌨ stdin/stdout

Examples

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