码迷,mamicode.com
首页 >  
搜索关键字:poj 3348 cows    ( 21218个结果
poj 2586 -- Y2K Accounting Bug
Y2K Accounting BugTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 9644Accepted: 4813DescriptionAccounting for Computer Machinists (ACM) has s...
分类:其他好文   时间:2014-05-16 03:11:10    阅读次数:264
[求PN点] poj 2505 A multiplication game
题目链接: http://poj.org/problem?id=2505 A multiplication game Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 5098   Accepted: 2573 Description St...
分类:其他好文   时间:2014-05-15 23:33:22    阅读次数:378
poj 1200 Crazy Search
题目:     链接:点击打开链接 题意:     输入n和nc,以及字符串s,输出长度为n的不同字串的个数。 算法:      思路:     用hash判重(hash值。。。。。。),看了大牛的代码,对hash还是不甚理解。。。。 代码:#include #include #include #include using namespace std; #define MAXN 1...
分类:其他好文   时间:2014-05-15 23:25:24    阅读次数:404
POJ 2411 Mondriaan's Dream(状压DP)
http://poj.org/problem?id=2411 求一个n*m矩阵用1*2方块去填满的情况有几种 思路:状压dp,先预处理那些状态之间能互相到达,情况就几种,上一个两个1,下一个状态也两个1,上一个为0,下一个必须为1,还有一种是上一个为1,下一个为0的情况 然后就一层层往后递推即可 代码: #include #include #include using namesp...
分类:其他好文   时间:2014-05-15 22:55:20    阅读次数:372
poj 2524 -- Ubiquitous Religions
Ubiquitous ReligionsTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 22612Accepted: 11140DescriptionThere are so many different religions in t...
分类:其他好文   时间:2014-05-15 20:44:25    阅读次数:259
[sg简单应用] poj 1082 Calendar Game
题目链接: http://poj.org/problem?id=1082 Calendar Game Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 4742   Accepted: 2236 Description Adam and...
分类:其他好文   时间:2014-05-15 20:33:25    阅读次数:223
POJ 2689 Prime Distance 素数筛选法应用
题目来源:POJ 2689 Prime Distance 题意:给出一个区间L R 区间内的距离最远和最近的2个素数 并且是相邻的 R-L 思路:一般素数筛选法是拿一个素数 然后它的2倍3倍4倍...都不是 然后这题可以直接从2的L/2倍开始它的L/2+1倍L/2+2倍...都不是素数 首先筛选出一些素数 然后在以这些素数为基础 在L-R上在筛一次因为 R-L #include #i...
分类:其他好文   时间:2014-05-15 19:51:58    阅读次数:313
[Wythoff博弈] poj 1067 取石子游戏
题目链接: http://poj.org/problem?id=1067 取石子游戏 Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 33556   Accepted: 11180 Description 有两堆石子,数量任意,可以不...
分类:其他好文   时间:2014-05-15 19:31:59    阅读次数:285
poj 2499
题目链接:点击打开链接 二叉树的应用,一开始自己真的没有思路,参考了http://blog.csdn.net/yangliuy/article/details/7250997 自己一开始真的TLE,还真的是,关键照着作者又降到了0ms,厉害! 最近荒废了很多时间,不,忙活别的事情了,不要忧虑未来,不要忧虑自己参加acm有没有结果,因为,这对于结果毫无影响,在忧虑与悔恨的相关联的感情中,是...
分类:其他好文   时间:2014-05-15 08:10:15    阅读次数:272
POJ 1002 487-3279
Description Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the Universit...
分类:其他好文   时间:2014-05-15 00:20:39    阅读次数:332
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!