cf/mirror

Game on Tree (Hard)

CF
1970C31900· candidate master1s256 MB⌨ stdin/stdout

Examples

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