码迷,mamicode.com
首页 >  
搜索关键字:ab problem    ( 41504个结果
729 - The Hamming Distance Problem
// 题意: // 输入两个整数N, H,按照字典序输出所有长度为N,恰好包含H个1的01串 // 规模:1#include#include#include#includeusing namespace std;int n,h;int buf[16];void solve(int c0, int c...
分类:其他好文   时间:2014-04-29 23:19:55    阅读次数:416
ny82 迷宫寻宝(一) map+queue
题目地址:http://acm.nyist.net/JudgeOnline/problem.php?pid=82AC代码:讲解,先统计在可搜索范围内对应的钥匙数,把搜到的门存到另外的一个队列中,第一个搜索结束后,开始看搜到的钥匙能否打看门, 如果能打看门,存到第一个队列中,在进行搜寻,知道找到宝藏,...
分类:其他好文   时间:2014-04-29 22:12:16    阅读次数:550
BNU 2418 Ultra-QuickSort (线段树求逆序对)
题目链接:http://acm.bnu.edu.cn/bnuoj/problem_show.php?pid=2418解题报告:就是给你n个数,然后让你求这个数列的逆序对是多少?题目中n的范围是n < 500000,所以,暴力是不行的。还是第一次学会用线段树求逆序数,这种方法的时间复杂度是n * lo...
分类:其他好文   时间:2014-04-29 21:38:23    阅读次数:463
nginx: [emerg] the size 10485760 of shared memory zone "cache_one" conflicts with already declared size 0
注意配置段中的区域包含关系.proxy_cache_patch 要在proxy_cache前已经定义.>>>> what seems to be the problem?>>>>>>>> [emerg]: the size 52428800 of shared memory zone "media"...
分类:其他好文   时间:2014-04-28 04:33:03    阅读次数:1157
福州大学 Problem 2168 防守阵地 I
http://acm.fzu.edu.cn/problem.php?pid=2168最重要的是dp[k]=dp[k-1]-ans[k-1]+x[i]*m;ans[k-1]是m个数求和。Problem 2168 防守阵地 I Accept: 14Submit: 20 Time Limit: 3000 ...
分类:其他好文   时间:2014-04-28 02:30:56    阅读次数:442
Conceptual blockbusting- chap2 perceptual blocks
Page 30Perceptual blocks are obstacles that prevent the problem-solver from clearly perceiving either the problem itself or the information needed to ...
分类:其他好文   时间:2014-04-28 00:54:37    阅读次数:403
Conceptual Blockbusting Intro & chap1
Page 6:Natural tendency in problem solving is to pick the first solution that comes to mind and run with it. The disadvantage of this approach is you ...
分类:其他好文   时间:2014-04-27 21:27:40    阅读次数:510
【解题报告】[动态规划]RQNOJ PID2 / 开心的金明
原题地址:http://www.rqnoj.cn/problem/2解题思路:背包问题。状态转移方程:DP[i][j]=max(DP[i-v[j]][j-1]+p[j]*v[j],DP[i][j-1])DP[i][j]表示最多话费i的钱,购买前j+1个物品所能达到的最大价值。解题代码: 1 #inc...
分类:其他好文   时间:2014-04-27 21:26:22    阅读次数:537
hdu 1081 To The Max
To The Max Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7533    Accepted Submission(s): 3647 Problem Description Given a two-dim...
分类:其他好文   时间:2014-04-27 19:54:26    阅读次数:624
[hdu-2040] 亲和数
亲和数 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 20184    Accepted Submission(s): 12195 Problem Description 古希腊数学家毕达哥拉斯在自然数研...
分类:其他好文   时间:2014-04-27 19:09:48    阅读次数:497
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!