「BZOJ1907」树的路径覆盖

2014年8月13日4,4521

Description

Input

Output

Sample Input

1
7
1 2
2 3
2 4
4 6
5 6
6 7

Sample Output

3

HINT

题解

从下往上直接贪心T T

 

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
  Subscribe  
提醒
赫顶红

请教一下这题的原题是spoj的PT07F – A short vacation in Disneyland 但是那题要求输出方案,那应该怎么写会比较简单?