Problem DescriptionThere arenblack balls andmwhite balls in the big box.Now, DZY starts to randomly pick out the balls one by one. It forms a sequence...
分类:
其他好文 时间:
2015-08-13 21:55:56
阅读次数:
144
http://acm.hunnu.edu.cn/online/?action=problem&type=show&id=11560&courseid=0题意:总共有n天,每天yangyang都需要一个快乐值,有m个队友,每个队友都会给阳阳一个快乐值(为2的幂),并且只能给一次,如果某一天队友给的快乐...
分类:
其他好文 时间:
2015-08-13 21:47:22
阅读次数:
176
B - Inna and Nine
Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
Inna loves digit 9 very much. That's why she asked Dima to wri...
分类:
其他好文 时间:
2015-08-09 18:55:11
阅读次数:
233
Yangyang loves AC题意: 给出Yangyang N天中每天达到happy 的最大值,他会从M个ACMer中得到happy值;
求他能最多达到happy的天数。
分析: 如果直接贪心显然有问题,所以我们需要换个姿势。
二分答案+贪心:
二分得到最多happy 天数,然后贪心,每次从M个ACMer中选最大的happy值,放到容量最大的盒子里,用优先队列每次维护最大容量的盒子。
算...
分类:
其他好文 时间:
2015-08-09 12:40:51
阅读次数:
158
Description
Little Susie loves strings. Today she calculates distances between them. As Susie is a small girl after all, her strings contain only digits zero and one. She uses the definition of Ham...
分类:
其他好文 时间:
2015-08-08 18:25:39
阅读次数:
117
Polycarp loves geometric progressions very much. Since he was only three years old, he loves only the progressions of length three. He also has a favo...
分类:
其他好文 时间:
2015-08-06 21:54:13
阅读次数:
104
SPFA,多一个dp数组记录,特判n=1的情况,路径长度可能超int。...
分类:
其他好文 时间:
2015-08-06 18:32:51
阅读次数:
103
MZL's xor
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 546 Accepted Submission(s): 365
Problem Description
MZL loves xor very muc...
分类:
其他好文 时间:
2015-08-06 11:07:51
阅读次数:
102
here:
首先看一下题吧:题意就是让你把一个序列里所有的(Ai+Aj) 的异或求出来。(1
Problem Description
MZL loves xor very much.Now he gets an array A.The length of A is n.He wants to know the xor of all (Ai+Aj)(1≤i,j≤n)
...
分类:
其他好文 时间:
2015-08-06 09:31:18
阅读次数:
215
MZL loves xor very much.Now he gets an array A.The length of A is n.He wants to know the xor of all (Ai+Aj)(1≤i,j≤n)The xor of an array B is defined a...
分类:
其他好文 时间:
2015-08-06 00:00:57
阅读次数:
510