码迷,mamicode.com
首页 >  
搜索关键字:poj1753flip game    ( 5568个结果
cocos2dx小知识——暂停界面的实现
游戏需要暂停时,一般都是将游戏界面变灰,暂停所有动作,然后弹出一堆的按钮。这该如何实现暂停界面呢?1、定义我定义了两个类:Game游戏类、GamePause暂停类。Game类中调用doPause()函数进行游戏暂停,却换到GamePause暂停画面。2、doPause()这里需要用到CCRenderTexture这个..
分类:其他好文   时间:2014-09-06 02:17:33    阅读次数:281
HDU 1054 Strategic Game (树形dp)
题目链接题意:给一颗树,用最少的点覆盖整棵树。分析:1:以当前节点为根节点,在该节点排士兵守护道路的最小消耗。在这种情况下,他的子节点可以安排士兵,也可以不安排士兵。可以从各个子节点两个不同状态(存在士兵,不存在士兵)的最值中选出最小的消耗,然后相加就求出了当前节点派士兵的最小消耗。2:以当前节点为...
分类:其他好文   时间:2014-09-05 22:15:52    阅读次数:338
UVA - 1498 Activation (DP+概率)
Description After 4 years' waiting, the game "Chinese Paladin 5" finally comes out. Tomato is a crazy fan, and luckily he got the first release. Now he is at home, ready to begin his journey. But b...
分类:其他好文   时间:2014-09-05 18:21:51    阅读次数:299
CodeChef--Cards, bags and coins
题目链接Yet another game from chef. Chef gives youNcards andMbags. Each of theNcards has an integer written on it. Now chef asks you to close your eyes an...
分类:其他好文   时间:2014-09-04 22:15:00    阅读次数:291
UVA 1045 - The Great Wall Game(二分图完美匹配)
UVA 1045 - The Great Wall Game 题目链接 题意:给定一个n*n的棋盘,有n个棋子在上面,现在要移动棋子,每一步代价是1,现在要把棋子移动到一行,一列,或者在主副对角线上,问最小代价 思路:二分图完美匹配,枚举每种情况,建边,边权为曼哈顿距离,然后km算法做完美匹配算出值即可,由于要求最小值所以边权传负数,这样做出来的值的负就是答案 代码: ...
分类:其他好文   时间:2014-09-04 20:57:30    阅读次数:340
uva 1330 City Game (最大子矩阵)
空白最多的最大子矩阵: #include #include #include using namespace std; const int maxn = 1005; int mat[maxn][maxn],up[maxn][maxn],left[maxn][maxn],right[maxn][maxn]; int main() { int t; scanf("%d",&t); ...
分类:其他好文   时间:2014-09-04 17:02:59    阅读次数:209
ZOJ 3789 Abs Problem
有时候像这种题,没有明显的思路,感觉像规律题。那么先暴力打表,再找规律就很快了。 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3798 先上我的暴力打表,这种肯定是TLE的,只用它发现规律就好了。 #include #include #include #define INF 0x3f3f3f3f #def...
分类:其他好文   时间:2014-09-03 22:48:57    阅读次数:287
SqlServer 使用 row_number分页
select?*?from?(select?row_number()over(order?by?Server_no?desc)?as?rownum,Server_no,Game_Name,Server_name?from?T_GameServer_List?where?IS_DELETE?=?‘N‘?and?Game_name?like?‘%q%‘)a...
分类:数据库   时间:2014-09-03 21:23:27    阅读次数:215
hdu 4592 Boring Game
Boring Game Time Limit: 8000/4000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 544    Accepted Submission(s): 91 Problem Description Zero likes to pla...
分类:其他好文   时间:2014-09-03 18:10:47    阅读次数:278
【UVA】10404-Bachet's Game(动态规划)
如果d[i]是必胜态,那么d[i + V[j]]一定是必败态,反之亦然。 用d[i]代表棋子为i个是否为必胜态。 边界条件是d[i] = 1; 14139291 10404 Bachet's Game Accepted C++ 0.662 2014-09-03 09:44:48 #include #include ...
分类:其他好文   时间:2014-09-03 18:10:17    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!