- 博客(2)
- 收藏
- 关注
原创 zoj 3949 Edge to the Root 2017浙大校赛B
Given a tree with n vertices, we want to add an edge between vertex 1 and vertex x, so that the sum of d(1, v) for all vertices v in the tree is minimized, where d(u, v) is the minimum number of edg
2017-04-13 20:53:31 1073
原创 hdu 5723 Abandoned country
Problem Description An abandoned country has n(n≤100000) villages which are numbered from 1 to n. Since abandoned for a long time, the roads need to be re-built. There are m(m≤1000000) roads
2017-04-13 20:44:28 295
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人