码迷,mamicode.com
首页 >  
搜索关键字:a stone removing gam    ( 709个结果
POJ 1740 A New Stone Game(多堆博弈找规律)
传送门 //有n堆,AB轮流从n堆的一堆中移任意个,可以扔掉,也可以移给其他堆中的一堆 //最先移完的胜 //如果n堆中两两堆数目相等,那肯定是B胜 //但只要有非两两相同的,如xyz,A先, //A可以从最多的那堆(z)移y-x个到x堆,yyp,最终移走p的一定是A #include #inclu...
分类:其他好文   时间:2016-03-02 00:22:30    阅读次数:227
[ACM] POJ 2253 Frogger (最短路径变形,每条通路中的最长边的最小值)
Frogger Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 24879 Accepted: 8076 Description Freddy Frog is sitting on a stone in the middle of
分类:其他好文   时间:2016-02-22 08:57:07    阅读次数:207
Java 实现享元(Flyweight)模式
/** * 字母 * @author stone * */ public class Letter { private String name; public Letter(String name) { this.name = name; } public String getName() { re
分类:编程语言   时间:2016-01-30 18:22:13    阅读次数:134
poj 2975 Nim(博弈)
Nim Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5232 Accepted: 2444 Description Nim is a 2-player game featuring several piles of stone
分类:其他好文   时间:2016-01-30 17:48:00    阅读次数:213
URAL 1180. Stone Game (博弈 + 规律)
1180. Stone GameTime limit: 1.0 secondMemory limit: 64 MBTwo Nikifors play a funny game. There is a heap ofN stones in front of them. Both Nikifors in...
分类:其他好文   时间:2016-01-25 22:54:53    阅读次数:237
POJ2253(floyd)
FroggerTime Limit:1000MSMemory Limit:65536KTotal Submissions:32257Accepted:10396DescriptionFreddy Frog is sitting on a stone in the middle of a lake. ...
分类:其他好文   时间:2016-01-20 22:42:41    阅读次数:226
#CF 141B. Hopscotch
141B - HopscotchLet's bust the "level" 0?≤?i?≤?106, in which assumedly the stone could hit. Let’s find the minimal number of square on this level. The...
分类:其他好文   时间:2016-01-19 22:11:51    阅读次数:234
使用sphinx索引mysql数据
数据库表如下mysql> select * from tb_account;+----+-------+------+| id | name | age |+----+-------+------+| 1 | ciaos | 3 || 2 | stone | 6 |+----+-------+---...
分类:数据库   时间:2015-12-30 21:54:37    阅读次数:323
Java LinkedList - differences between retrieve operations
Returning null + removing operations:poll(),pollFirst().Returning null + not removing operations:peek(),peekFirst().Throwing exception + removing oper...
分类:编程语言   时间:2015-12-30 07:02:43    阅读次数:153
NOIP2015-stone(二分答案)
这道题在考试时二分答案写炸了,结果得了20分。。。。。同学有用贪心写的(对,贪心!!)都得了30,我感到了深深的恶意。这段时间在忙转语言,现在重新整理一下NOIP的题。题目来源:vijos题目如下:组委会计划移走一些岩石,使得选手们在比赛过程中的最短跳 跃距离尽可能长。由于预算限制,组委会至多从起点...
分类:其他好文   时间:2015-12-22 21:09:44    阅读次数:283
709条   上一页 1 ... 41 42 43 44 45 ... 71 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!