码迷,mamicode.com
首页 >  
搜索关键字:a simple game    ( 11903个结果
Treblecross 博弈SG值
Treblecross is a two player game where the goal is to get threeXin a row on a one-dimensional board. At the start of the game all cells in the board a...
分类:其他好文   时间:2014-08-10 23:50:01    阅读次数:451
vim python配置之 pyflakes 安装
安装步骤: 1.sudo pip install pyflakes (必要时加个代理更快 -i http://e.pypi.python.org/simple)  先安装pip 2.去https://github.com/kevinw/pyflakes-vim下载pyflakes-vim插件 3.解压 4.sudo vi /etc/vim/vimrc,添加“ filetype on ...
分类:编程语言   时间:2014-08-10 18:41:50    阅读次数:2599
ZOJ 3791 An easy game DP+组合数
给定两个01序列,每次操作可以任意改变其中的m个数字 0变 1 1 变 0,正好要变化k次,问有多少种变法dp模型为dp[i][j],表示进行到第i次变化,A,B序列有j个不同的 变法总和。循环k次,每次针对m,向那j个不同 分1-j个即可,不过要用到组合数,因为对每个数操作不同都不一样最后结果就是...
分类:其他好文   时间:2014-08-10 18:19:30    阅读次数:163
uva 10050 - Hartals
Problem D: HartalsA social research organization has determined a simple set of parameters to simulate the behavior of the political parties of our c....
分类:其他好文   时间:2014-08-10 18:19:00    阅读次数:306
POJ3420 Quad Tiling (矩阵加速状压dp)
传送门:http://poj.org/problem?id=3420Quad TilingTime Limit: 1000MSMemory Limit: 65536KDescriptionTired of the Tri Tiling game finally, Michael turns to a...
分类:其他好文   时间:2014-08-10 15:20:20    阅读次数:290
uva 12033 - Game of CS(树形删边)
题目链接:uva 12033 - Game of CS 题目大意:给定图,以0为根节点,每条边有一个长度,两个人轮流操作,每次为一条边上色,上一个单位长度,当一条边的颜色被涂满,则算作是减掉整段子树。判断先手是否必胜。 解题思路:SG定理,对于当前节点u,每次考虑字节点v,u-v边的长度为l 当l为1时:sg(u) ^= (sg(v) + 1) 当l为奇数时: 需要判断sg(v...
分类:其他好文   时间:2014-08-10 01:50:49    阅读次数:258
UVA 489-- Hangman Judge--暴力串处理
Hangman Judge  In ``Hangman Judge,'' you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given as well as the guesses. Rules are t...
分类:其他好文   时间:2014-08-09 21:37:19    阅读次数:414
HDU 1002 A + B Problem II(大整数相加)
A + B Problem II Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Description I have a very simple problem for you. Given two integers A and B, your job ...
分类:其他好文   时间:2014-08-09 15:55:08    阅读次数:284
struts2之form标签theme属性详解
struts2中theme属性包括xhtml,html,simple,ajax 。默认是xhtmltheme:设置struts2标签的主题,默认为xhtml。 theme=xhtml时:会默认额外生成tr,td。 theme=simple时:就生成标签所对应的html标签形式。在默认情况下,表单元素...
分类:其他好文   时间:2014-08-09 13:15:07    阅读次数:189
uva 1567 - A simple stone game(K倍动态减法游戏)
题目链接:uva 1567 - A simple stone game 题目大意:给定K和N,表示一堆石子有N个,先手第一次可以取1~N-1个石子,取到最后一个石子的人胜利,单词每次操作时,取的石子数不能超过对手上一次取的石子数m的K倍。问先手是否可以必胜,可以输出最小的首次操作。 解题思路:这题想了一天,又是打表找规律,又是推公式的,楞是做不出来,后来在网上找到了一篇题解,将的很清楚...
分类:其他好文   时间:2014-08-09 11:46:07    阅读次数:202
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!