码迷,mamicode.com
首页 >  
搜索关键字:alice and bob    ( 1671个结果
UESTC 890 Card Trick(DP 纸牌魔术)
题意  给你一些牌  全部正面朝下放桌子上   你选一个起点    翻开那张牌   牌上的数字是几就向前走几步   J,Q,K 都是向前走10步  A向前走11步   知道向前走对应的步数后超过了终点   输入n m 和n个数   代表你以第m张牌为起点   依次掀开了n张牌就不能再掀了    然后同样的牌   Alice以1-10张牌中的任意一个为起点   求Alice最后的终点与你的终点相同的...
分类:其他好文   时间:2014-08-28 11:29:19    阅读次数:254
UVA - 12293 Box Game (规律)
Description   Box Game  There are two identical boxes. One of them contains n balls, while the other box contains one ball. Alice and Bob invented a game with the boxes and bal...
分类:其他好文   时间:2014-08-28 09:41:09    阅读次数:189
Alice's Chance
poj1698:http://poj.org/problem?id=1698题意:爱丽丝要拍电影,有n部电影,规定爱丽丝每部电影在每个礼拜只有固定的几天可以拍电影,只可以拍前面w个礼拜,并且这部电影要拍d天,问爱丽丝能不能拍完所有的电影。题解:这里有一点技巧,一开始我想到的就是每一天放在一起,实际上...
分类:其他好文   时间:2014-08-27 20:10:18    阅读次数:223
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 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 3666 Alice and Bob , SG函数
题意: 在一个有向无环图上,有若干玩具,每人每次只能将一个玩具移动一步,玩具被移动到终点n将不能再被移动了,最后不能移动者输。 组合博弈 SG函数应用 #include #include #include #include using namespace std; const int maxn = 10000 + 100; int SG[maxn]; vector ...
分类:其他好文   时间:2014-08-26 21:32:06    阅读次数:208
Python-print学习
>>> reply = """Greetings...Hello %(name)s!Your age squared is %(age)s""">>> values = {'name': 'Bob', 'age':40}>>> print(reply % values)Greetings...Hel...
分类:编程语言   时间:2014-08-26 17:11:36    阅读次数:335
ZOJ3798:Abs Problem
Alice and Bob is playing a game, and this time the game is all about the absolute value! Alice has N different positive integers, and each number is not greater than N. Bob has a lot of blank paper, ...
分类:其他好文   时间:2014-08-26 15:37:46    阅读次数:228
ZOJ 3798 Abs Problem(规律题)
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3798 Abs Problem Time Limit: 2 Seconds      Memory Limit: 65536 KB      Special Judge Alice and Bob is playing a game, and ...
分类:其他好文   时间:2014-08-25 21:16:24    阅读次数:293
浙大月赛ZOJ Monthly, August 2014
Abs ProblemTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeAlice and Bob is playing a game, and this time the game is all about the absolute...
分类:其他好文   时间:2014-08-25 16:56:44    阅读次数:261
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!