码迷,mamicode.com
首页 >  
搜索关键字:c. dzy loves sequences    ( 1332个结果
N个盒子M个物品,求装满盒子的最多
Yangyang loves AC题意: 给出Yangyang N天中每天达到happy 的最大值,他会从M个ACMer中得到happy值; 求他能最多达到happy的天数。 分析: 如果直接贪心显然有问题,所以我们需要换个姿势。 二分答案+贪心: 二分得到最多happy 天数,然后贪心,每次从M个ACMer中选最大的happy值,放到容量最大的盒子里,用优先队列每次维护最大容量的盒子。 算...
分类:其他好文   时间:2015-08-09 12:40:51    阅读次数:158
CodeForces 545B
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
Gym 100418B : Sum of sequences
式子化解 , 递推
分类:其他好文   时间:2015-08-08 01:16:11    阅读次数:116
hdu 2141 Can you find it?(二分查找变例)
Problem DescriptionGive you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbe...
分类:其他好文   时间:2015-08-07 19:25:02    阅读次数:111
HDU - 1711 Number Sequence KMP字符串匹配
HDU - 1711 Number Sequence Time Limit: 5000MS   Memory Limit: 32768KB   64bit IO Format: %I64d & %I64u Submit Status Description Given two sequences of numbers : a[1],...
分类:其他好文   时间:2015-08-06 22:18:15    阅读次数:117
Codeforces Round #Pi (Div. 2)——map——Geometric Progression
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
HDU 4360 As long as Binbin loves Sangsang(SPFA)
SPFA,多一个dp数组记录,特判n=1的情况,路径长度可能超int。...
分类:其他好文   时间:2015-08-06 18:32:51    阅读次数:103
HDU 5344
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
hdu 5344 (多校联赛) MZL's xor --- 位运算
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
HDU5344——数学题——MZL's xor
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
1332条   上一页 1 ... 84 85 86 87 88 ... 134 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!