码迷,mamicode.com
首页 >  
搜索关键字:alice    ( 981个结果
对称构造
Alice and Bob decide to play a funny game. At the beginning of the game they pick n(1 <= n <= 10 6) coins in a circle, as Figure 1 shows. A move consi ...
分类:其他好文   时间:2017-07-25 22:27:50    阅读次数:181
Cipher
Description Bob and Alice started to use a brand-new encoding scheme. Surprisingly it is not a Public Key Cryptosystem, but their encoding and decodin ...
分类:其他好文   时间:2017-07-25 14:25:26    阅读次数:209
KMP字符串匹配 fzu2275重现赛POJ3167
KMP原理 点击FZU 2275 Game乍一看是个博弈的题目,实际上是重现里面比较简单的字符匹配。只要B是0,那么A一定赢。只要A的长度小于B,那么B一定赢。只有当A中可以搜索到B,也就是B或者B的反转是A的子串,那么A就可以赢。#include #include #include #includ... ...
分类:其他好文   时间:2017-07-23 22:48:04    阅读次数:307
D - 船之战
Alice and Bob love playing one-dimensional battle ships. They play on the field in the form of a line consisting of n square cells (that is, on a 1?×? ...
分类:其他好文   时间:2017-07-23 15:27:18    阅读次数:164
HDU3032_NimOrNotNim解题报告
HDU3032 Nim or not Nim 解题报告:思路与证明 胡明晓 Description Alice and Bob is tired of playing Nim under the standard rule, so they make a difference by also all ...
分类:其他好文   时间:2017-07-22 22:20:26    阅读次数:169
几个Shell脚本的例子
【例子:001】判断输入为数字,字符或其他 【例子:002】求平均数 【例子:003】自减输出 【例子:004】在文件中添加前缀 # 人名列表 # cat namelist Jame Bob Tom Jerry Sherry Alice John # 脚本程序 # cat namelist.sh # ...
分类:系统相关   时间:2017-07-18 18:52:21    阅读次数:235
点击不同按钮,加载不同的页面(不使用iframe的情况下)
第二种方法(建议第二种方法): 使用angularjs的路由机制,配合ng-view标签使用,具体查看下方链接。 则div会展示子页面。 http://harttle.com/2015/06/10/angular-route.html 或者看这个:http://blog.gejiawen.com/2 ...
分类:其他好文   时间:2017-07-18 18:46:22    阅读次数:207
Gym - 100952G
G. The jar of divisors Alice and Bob play the following game. They choose a number N to play with. The rules are as follows: - They write each number ...
分类:其他好文   时间:2017-07-17 21:58:16    阅读次数:129
硬币游戏1(博弈论入门题)
题目链接:挑战程序设计竞赛p305 题意:一开始有X枚硬币,有K种取法,a[1],a[2]......a[k],取走最后一枚硬币为胜利者,两个人取硬币,都以最优策略取硬币,Alice先取,问最终谁是胜利者。 动态规划的思想(轮到Alice取硬币): 1.剩下0枚硬币,Alice为必败态。 2.剩下i ...
分类:其他好文   时间:2017-07-16 11:24:03    阅读次数:426
Learn Python 009: Dictionary
# create a dictionary students = {"Alice": 24, "Bob": 26, "Clark": 23, "Dan": 28, "Emma": 31} # add entry to a dictionary students['Fred'] = 27 # alte... ...
分类:编程语言   时间:2017-07-15 00:00:51    阅读次数:257
981条   上一页 1 ... 46 47 48 49 50 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!