dfs序
bao___zi
ACM 弱鸡一枚
What this era lacks is not the person who is perfect but the person who is with virtue, justice, courage and compassion.
展开
-
Codeforces 1006E Military Problem
In this problem you will have to help Berland army with organizing their command delivery system. There are n officers in Berland army. The first officer is the commander of the army, and he does not...原创 2018-08-15 23:53:07 · 250 阅读 · 0 评论 -
HDU 5692 Snacks
Problem Description 百度科技园内有n个零食机,零食机之间通过n−1条路相互连通。 每个零食机都有一个值v,表示为小度熊提供零食的价值。 由于零食被频繁的消耗和补充,零食机的价值v会时常发生变化。小度熊只能从编号为0的零食机出发,并且每个零食机至多经过一次。另外,小度熊会对某个零食机的零食有所偏爱,要求路线上必须有那个零食机。 为小度熊规划一个路线,使得路线上的价值总和最大。...原创 2018-08-24 09:33:29 · 183 阅读 · 0 评论