码迷,mamicode.com
首页 >  
搜索关键字:a simple game    ( 11903个结果
【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
HDU 4971 A simple brute force problem.(最小割---最大权闭合)
题目地址:HDU 4971 比赛的时候还不会最大权闭合,当时还跟队友讨论了好长时间费用流和DP。。现在看来就是一最大权闭合水题。。。 建图思路:源点连工程,权值为利润,汇点连科技项目,权值为花费,然后对有依赖性的连有向边。用正权值和减去最小割就是答案。 #include #include #include #include #include #include #include ...
分类:其他好文   时间:2014-09-03 11:17:06    阅读次数:246
Simple Tips for Collection in Python
Tips for Collection
分类:编程语言   时间:2014-09-03 00:16:45    阅读次数:249
poj 1733带权并查集
L - Parity game Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description Now and then you play the following game with your friend. Your f...
分类:其他好文   时间:2014-09-02 19:58:25    阅读次数:263
XTU—1190 Game of Wuxing
纯模拟 http://202.197.224.59/OnlineJudge2/index.php/Problem/read/id/1190        #include int main() { //freopen("in.txt","r",stdin); int k,i,a,b,sum1,sum2; char x,y; scanf("%d",&k); ...
分类:其他好文   时间:2014-09-02 17:55:24    阅读次数:197
简易html5贪吃蛇
1.[图片]E6~0%QPA46ER843UQJ$0Z`H.jpg?2. [文件] snake.htmlThe snake game Your browser cannot support html5.
分类:Web程序   时间:2014-09-02 17:36:55    阅读次数:334
[上海] [哔哩哔哩]-努力寻求[PHP /C++/Andro/iOS/前端开发工程师]-会是你吗?
———————————————————— [我们是谁?] ————————————————————[哔哩哔哩弹幕网] -简称 ["bilibili"][bilibili] 是一家以ACG(Animation、Comic、Game)为主题的娱乐站点。[bilibili] 目前有动画、音乐、游戏、娱乐、...
分类:移动开发   时间:2014-09-02 17:28:54    阅读次数:216
HDU-2259-Continuous Same Game (2)(BFS+DFS+模拟)
Problem Description After repeated attempts, LL finds the greedy strategy is very awful in practice. Even there is no apparent evidence to proof it is better than a random one. So he has to drop th...
分类:其他好文   时间:2014-09-02 12:29:04    阅读次数:226
1041. Be Unique (20)
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe...
分类:其他好文   时间:2014-09-02 11:55:54    阅读次数:197
CF 317D Game with Powers
典型的博弈题目题意: 两个人从1~n中轮流取数,每次取到x时,则x的任意整数幂均不能再被取,最后谁取不了就输。题解: 可以发现,对于该博弈游戏的子游戏是x的1~k次幂,进行上述规则下的博弈。 而子游戏的SG值只与个数有关,与x的值无关。而k最大只有30,故可以打表。 而游戏最终结果即所有子游...
分类:其他好文   时间:2014-09-01 22:39:23    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!