#P4096. [HEOI2013] Eden 的博弈树
[HEOI2013] Eden 的博弈树
Output Format
Print three space-separated positive integers on a single line: the index of the critical leaf node with the smallest index, the number of critical leaf nodes, and the bitwise XOR of the indices of all critical leaf nodes.
7
1
1
2
2
3
3
4 4 0
Hint
[Sample explanation]

As shown, black nodes indicate Black-to-move nodes, and white nodes indicate White-to-move nodes.
All minimal Black-winning sets are and .
All minimal White-winning sets are , , , and .
Therefore, the set of critical leaf nodes is .
- For of the testdata, .
- For of the testdata, .
- For of the testdata, , and the tree is randomly generated.
- For of the testdata, , and for node (), the index of its parent is less than .
Translated by ChatGPT 5
京公网安备 11011102002149号