码迷,mamicode.com
首页 >  
搜索关键字:christmas game    ( 5650个结果
取石子(一)nyoj23--201407310908
取石子(一)/*巴什博奕(Bash Game): 只有一堆n个物品,两个人轮流从这堆物品中取物,规定每次至少取一个,最多取m个。 最后取光者得胜。 显然,如果n=m+1,那么由于一次最多只能取m个,所以,无论先取者拿走多少个, 后取者都能够一次拿走剩余的物品,后者取胜。因此我们发现了如何取胜的法则:...
分类:其他好文   时间:2014-07-31 09:42:55    阅读次数:174
HDU - 2842 Chinese Rings
Description Dumbear likes to play the Chinese Rings (Baguenaudier). It’s a game played with nine rings on a bar. The rules of this game are very simple: At first, the nine rings are all on the bar....
分类:其他好文   时间:2014-07-30 20:50:24    阅读次数:319
HDU 2845 Beans
Problem Description Bean-eating is an interesting game, everyone owns an M*N matrix, which is filled with different qualities beans. Meantime, there is only one bean in any 1*1 grid. Now you want t...
分类:其他好文   时间:2014-07-30 20:46:54    阅读次数:262
UVa 340 Master-Mind Hints
Master-Mind Hints  MasterMind is a game for two players. One of them, Designer, selects a secret code. The other,Breaker, tries to break it. A code is no more than a row of colored dots. ...
分类:其他好文   时间:2014-07-30 14:44:53    阅读次数:242
UVALive 6262 Darts
DescriptionConsider a game in which darts are thrown at a board. The board is formed by 10 circles with radii 20, 40, 60, 80, 100, 120, 140, 160, 180,...
分类:其他好文   时间:2014-07-30 09:53:33    阅读次数:319
HDU 1505 City Game
这题是上一题的升级版关键在于条形图的构造,逐行处理输入的矩阵,遇到'F'则在上一次的条形图基础上再加1,遇到'R'则置为0然后用上一题的算法,求每行对应条形图的最大矩阵的面积。另外:本来是debug都不用就1A的节奏。可在输入数据上,一开始我用的是scanf读入字符 和 getchar跳过无效字符,...
分类:其他好文   时间:2014-07-29 21:18:22    阅读次数:280
杭电 2503
Switch Game Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 10590    Accepted Submission(s): 6446 Problem Description There are many la...
分类:其他好文   时间:2014-07-29 17:52:02    阅读次数:203
【HackerRank】 Game Of Thrones - I
King Robert has 7 kingdoms under his rule. He gets to know from a raven that the Dothraki are going to wage a war against him soon. But, he knows the ...
分类:其他好文   时间:2014-07-29 17:18:52    阅读次数:211
uva539 The Settlers of Catan
The Settlers of Catan Within Settlers of Catan, the 1995 German game of the year, players attempt to dominate an island by building roads, settlements...
分类:其他好文   时间:2014-07-29 16:57:12    阅读次数:253
HDU4597:Play Game(记忆化)
Problem Description Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns to pick up the top or bottom card from...
分类:其他好文   时间:2014-07-29 15:03:28    阅读次数:248
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!