摘要:
E. Blood Cousins Returntime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus got hold of a family tree. The found tree describes the family relations ofnpeople, numbered from 1 ton. Every person in this tree has at most one direct ancestor. 阅读全文