In each move, a pla
If a pla
Please determine whether OP I has a strategy
to make sure he will win.
The first line of each test case contains
one integer n (1≤n≤10^5).
The second line contains two integers x,y (1≤x,y≤n, x!=y).
Each of the following n
- 1lines contains two
integers u,v(1≤u,v≤n, u!=v) - an edge between u,v.
It's guaranteed that ∑n≤6×10^5.
3
5
2 3
2 5
5 4
5 1
3 4
5
3 5
2 4
1 5
4 3
1 4
5
1 2
3 4
4 2
5 1
4 5
1
1
0