Anniversary party Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6062 Accepted: 3490 Description There is going to be a party to celebrate ...
分类:
其他好文 时间:
2016-04-19 22:45:16
阅读次数:
380
Problem Description
In the new year party, everybody will get a “special present”.Now it’s your turn to get your special present, a lot of presents now putting on the desk, and only one of them will b...
分类:
其他好文 时间:
2016-04-19 20:03:15
阅读次数:
304
Alisha’s Party
Time Limit: 3000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 4075 Accepted Submission(s): 1052
Problem Description
Princess ...
分类:
其他好文 时间:
2016-04-16 19:15:47
阅读次数:
265
题目链接: Anniversary party Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description There is going to be a pa ...
分类:
其他好文 时间:
2016-04-11 20:57:16
阅读次数:
192
转载于:http://blog.csdn.net/dellaserss/article/details/7724401 并查集是我暑假从高手那里学到的一招,觉得真是太精妙的设计了。以前我无法解决的一类问题竟然可以用如此简单高效的方法搞定。不分享出来真是对不起party了。(party:我靠,关我嘛事 ...
分类:
其他好文 时间:
2016-04-05 19:59:22
阅读次数:
288
In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every ...
分类:
其他好文 时间:
2016-04-05 19:27:12
阅读次数:
221
题目:Anniversary party 题意:给出N各节点的快乐指数,以及父子关系,求最大快乐指数和(没人职员愿意跟直接上司一起玩); 思路:从底向上的树状DP; 第一种情况:第i个员工不参与,F[i][0] += max(F[k][1], F[k][0]);(k为i的儿子) 第二种情况:第i个员 ...
分类:
其他好文 时间:
2016-04-05 08:13:02
阅读次数:
172
题目内容: 生日蜡烛某君从某年开始每年都举办一次生日party,并且每次都要吹熄与年龄相同根数的蜡烛。现在算起来,他一共吹熄了236根蜡烛。请问,他从多少岁开始过生日party的?请填写他开始过生日party的年龄数。注意:你提交的应该是一个整数,不要填写任何多余的内容或说明性文字。//****** ...
分类:
其他好文 时间:
2016-04-04 22:36:50
阅读次数:
176
题目大概说有n男n女,男的每回合要和不同女的跳舞,男女都有自己喜欢一起跳舞的对象,他们最多能容忍和k个不喜欢的人跳舞,问舞会最多能进行几个回合。 二分枚举回合用最大流判断:男和女各拆成两点i、i'和j、j',中间连容量k的边;源点向i连容量为回合数的边,j'向汇点连容量回合数的边;如果i和j是喜欢关 ...
分类:
其他好文 时间:
2016-04-04 10:17:27
阅读次数:
256