码迷,mamicode.com
首页 >  
搜索关键字:segment game    ( 7679个结果
Jump Game II
Jump Game II
分类:其他好文   时间:2014-07-06 21:17:39    阅读次数:132
一道PK赛题
Problem DescriptionI think that you might have played the traditional Chinese ring game: The Chinese Linking Rings (here we call its nickname Jiulianh...
分类:其他好文   时间:2014-07-06 17:06:04    阅读次数:293
HDU 1517 A Multiplication Game (博弈-求sg)
HDU 1517 A Multiplication Game (博弈-求sg) 题目大意: Stan 和 Ollie 两个人玩游戏, 一开始数字是 1,两个人轮流,Stan 先手,每个人选择 2~9 里面的一个一直乘以起初的数字,直到某个人乘到 这个数大于等于 n 就算赢,n给定,问你谁必然赢。 解题思路: 这题我没找出SG函数(必胜必输)的规律,只能用DP的方法求出每种状态的必胜必输状态。 2~9 ,依次其实可以用 2 3 5 7 这几个数得到,因此每个状态只需要记录2 3 5 7 这几个数的...
分类:其他好文   时间:2014-07-06 12:16:39    阅读次数:234
ZOJ3329-One Person Game(概率DP求数学期望)
One Person Game Time Limit: 1 Second      Memory Limit: 32768 KB      Special Judge There is a very simple and interesting one-person game. You have 3 dice, namely Die1, Die2 and Die3. Die1...
分类:其他好文   时间:2014-07-06 12:04:41    阅读次数:167
ZOJ3605-Find the Marble(概率DP)
Find the Marble Time Limit: 2 Seconds      Memory Limit: 65536 KB Alice and Bob are playing a game. This game is played with several identical pots and one marble. When the game starts, Alice...
分类:其他好文   时间:2014-07-06 11:35:34    阅读次数:133
warning: shared library text segment is not shareable
warning: shared library text segment is not shareable error: treating warnings as errors 最近在调试一个Gsensor, 代码是从android4.2上直接移植过来的。但却一直编译不过, 纳闷了。。。  baidu不行  google 又访问不了,真是操蛋  但是终究还是找到了点有用的信息,说是编译器...
分类:其他好文   时间:2014-07-06 09:20:15    阅读次数:292
POJ 1101 The Game(BFS+判方向)
The Game Description One morning, you wake up and think: "I am such a good programmer. Why not make some money?'' So you decide to write a computer game. The game takes place on a rectangular...
分类:其他好文   时间:2014-07-06 09:02:34    阅读次数:287
HDU 2795 Billboard.(线段树)
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2795 ~~~~ 开始学习数据结构,从简单的开始吧,刷题累了就写解题报告,哈哈,沸腾吧,Segment tree! ~~~~ 大致题意:一块 h*w的广告牌,蓝后就是n块1*wi大小的广告,依次贴到广告牌上,而且总是贴到最左上角,问贴完所有广告后所占的高度是多少? #include #...
分类:其他好文   时间:2014-07-06 00:35:13    阅读次数:245
HDU 1525 博弈
Euclid's Game Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 1880    Accepted Submission(s): 825 Problem Description Two players, Stan...
分类:其他好文   时间:2014-07-06 00:02:49    阅读次数:253
hdu2374 A Game with Marbles(简单数学题)
hdu2374 A Game with Marbles(简单数学题)...
分类:其他好文   时间:2014-07-05 10:43:52    阅读次数:243
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!