Chocolate NF Spring

查看题解 查看答案
题目描述
Time Limit: 1000 ms
Memory Limit: 256 mb

请先登录再刷题,不会做的题目右上可以查看题解和答案~

输入输出格式
输入描述:
A single integer: N
There are n - 1 lines , Each line contains two space-separated integers that describe a pipe's 
connectivity: Ai and Bi
输出描述:
Integers, one per line and in ascending order, each denoting a possible node at which to install the 
chocolate inserter.
输入输出样例
输入样例#:
9 
1 4 
3 5 
2 4 
5 6 
6 7 
7 8 
4 6 
7 9
输出样例#:
复制
6 
7
重置

提交代码后在此处可查看状态