小墨在努力!!
吗了个b的。。。。。
摘要: The Frog's GamesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 998 Accepted Submission(s): 533Problem DescriptionThe annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Tr 阅读全文
posted @ 2011-09-22 21:12 小墨在努力!! 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.Note: the number of first circle should always be 1.Inputn (0 < n < 20).OutputThe output format i 阅读全文
posted @ 2011-09-20 20:49 小墨在努力!! 阅读(960) 评论(0) 推荐(1) 编辑
摘要: Description放寒假了,x一个人在家很无聊。于是他就想出了一种新的石头剪刀布玩法(单机版的哦)。玩法如下:S代表石头,J代表剪刀,B代表布。赢得一分,平不得分,输扣一分。进行n次游戏,而且对手每次游戏出的什么都是已知的。但是自己只能出a次S,b次J和c次B(a,b,c都是非负并且a+b+c=n)。现在需要你如何安排这a次S,b次J和c次B使自己最后得到的分数最大。Input先给出n(n<=100),表示进行几次游戏。接着是给n个由S,J,B组成的字符串,表示对手每次游戏出的是什么。最后是给出a,b,c。当n=0时,输入结束。Output对于每组测试数据给出一个整数,表示此次游戏x 阅读全文
posted @ 2011-09-18 09:06 小墨在努力!! 阅读(427) 评论(2) 推荐(0) 编辑