#Lutece0314. 新手训练01_树的判定
新手训练01_树的判定
Migrated from Lutece 314 新手训练01_树的判定
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
判断给定的无向图是不是一棵树。
Input
第一行输入个数, ,表示图有个节点(编号到),条边。
接下来行描述条边,每行个数, ,表示节点和节点之间有一条边相连。
, ,
Output
true
,表示给定的图是一棵树,否则输出false
。
Samples
Resources
qbwj