cf/mirror

Johnny Solving

CF
1103C2700· international gm1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4 6 2
1 2
1 3
1 4
2 3
2 4
3 4
Output
PATH
4
1 2 3 4
Sample 2of 2
Input
10 18 2
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
2 3
3 4
2 4
5 6
6 7
5 7
8 9
9 10
8 10
Output
CYCLES
4
4 1 2 3
4
7 1 5 6
1103C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…