码迷,mamicode.com
首页 >  
搜索关键字:zoj 3456    ( 3447个结果
ZOJ 3802 Easy 2048 Again 状压DP
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5334...
分类:其他好文   时间:2014-08-27 18:49:48    阅读次数:238
Beans Game(博弈 | | DP)zoj 3057
Beans GameTime Limit: 5 Seconds Memory Limit: 32768 KBThere are three piles of beans. TT and DD pick any number of beans from any pile or the same num...
分类:其他好文   时间:2014-08-27 18:32:48    阅读次数:150
ZOJ 3806 Incircle and Circumcircle 【几何】【special judge】
浙大月赛 几何...
分类:其他好文   时间:2014-08-27 16:39:48    阅读次数:198
Zoj 3430 Detect the Virus (AC自动机)
题目大意: 给出来n条64base的病毒编码序列。 再给出m条模式串,让你反编码之后求出里面包含多少病毒序列。 思路分析: 很裸的AC自动机了。但是各种恶心。 动态开trie 静态开queue 就会RE。 全部动态开辟就会MLE。 各种姿势之后静态开trie 动态开queue才能AC。 #include #include #include #include ...
分类:其他好文   时间:2014-08-27 14:49:28    阅读次数:232
zoj 1456 Minimum Transport Cost (Floyd+路径记录)
Minimum Transport Cost Time Limit: 2 Seconds      Memory Limit: 65536 KB These are N cities in Spring country. Between each pair of cities there may be one transportation track or none. Now ther...
分类:其他好文   时间:2014-08-27 13:07:27    阅读次数:235
zoj 3669 Japanese Mahjong I
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3669 题目大意:就是给你一副牌,问你胡牌的方式有几种,并输出方式。。。。。 思路:因为一副牌的数量不多,所以可以直接枚举每一张牌,判断加上这张牌后能否胡牌。。。 code: #include #include #include #include #...
分类:其他好文   时间:2014-08-27 13:02:27    阅读次数:234
ZOJ Monthly, November 2012
A.ZOJ 3666 Alice and Bob 组合博弈,SG函数应用 #include #include #include #include using namespace std; const int maxn = 10000 + 100; int SG[maxn]; vector g[maxn]; int mex(int u) { //minimal excludant...
分类:其他好文   时间:2014-08-27 11:01:08    阅读次数:324
zoj 3672 思维题
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4915 真是老了,脑子不会动了,但是其实就算现在搜了题解A了,还是没总结出思维方式 三点: 1、segma(a[i]-b[i])必须是偶数,,因为其实每次操作都是相当于从segma(a[i]-b[i])里面减去2*delta 2、a[i]>=b[i] 题目说的很清楚,只能...
分类:其他好文   时间:2014-08-26 23:02:26    阅读次数:442
ZOJ 3666 Alice and Bob (SG博弈)
题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3666题意:给一个有向图,然后A和B轮流移动棋子,棋子在每一个位置可以重叠,当某人不能走时,输!问A和B谁赢方法:显然每一局游戏都是独立的,对每一局游戏异或即可每一局游戏...
分类:其他好文   时间:2014-08-26 22:55:36    阅读次数:359
ZOJ 1584:Sunny Cup 2003 - Preliminary Round(最小生成树&&prim)
Sunny Cup 2003 - Preliminary RoundApril 20th, 12:00 - 17:00Problem E: QS NetworkIn the planet w-503 of galaxy cgb, there is a kind of intelligent crea...
分类:其他好文   时间:2014-08-26 22:45:56    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!