http://acm.hdu.edu.cn/showproblem.php?pid=1827缩点后,统计入度为0的点有多少个,那么这些点都是需要被通知的,但是这些点可能也是被缩的,所以每次在这个点所属集合找一个最小值即可. 1 #include 2 #include 3 #include ...
分类:
其他好文 时间:
2015-08-14 15:29:25
阅读次数:
94
DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as do...
分类:
其他好文 时间:
2015-08-13 21:40:39
阅读次数:
99
DescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular brackets sequence,ifsis a regul...
分类:
其他好文 时间:
2015-08-12 21:36:29
阅读次数:
102
题目大意:To see a World in a Grain of Sand
And a Heaven in a Wild Flower,
Hold Infinity in the palm of your hand
And Eternity in an hour.
―― William Blake 听说lcy帮大家预定了新马泰7日游,Wiskey...
分类:
其他好文 时间:
2015-08-12 01:20:18
阅读次数:
145
DescriptionThe world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them. He is very...
分类:
其他好文 时间:
2015-08-11 22:57:49
阅读次数:
111
DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the ma...
分类:
其他好文 时间:
2015-08-11 18:12:54
阅读次数:
104
I’ve seen the world,lit it up as my stage now 阅尽繁华 点亮红尘做舞台 Channeling angels in,the new age now 粉末登场 有你有我新时达 Hot summer days,rock and roll The way you...
分类:
其他好文 时间:
2015-08-10 23:52:15
阅读次数:
255
My birthday is coming up and traditionally I’mserving pie. Not just one pie, no, I have a numberN of them, of various tastes and of various sizes. Fof...
分类:
其他好文 时间:
2015-08-09 22:19:12
阅读次数:
101
DescriptionBefore the invention of book-printing, it was very hard to make a copy of a book. All the contents had to be re-written by hand by so calle...
分类:
其他好文 时间:
2015-08-09 22:18:20
阅读次数:
130
Given several segments of line (int the X axis) with coordinates [Li, Ri].You are to choose the minimalamount of them, such they would completely cove...
分类:
其他好文 时间:
2015-08-09 22:14:58
阅读次数:
133