摘要: There are N little kids sitting in a circle, each of them are carrying some java beans in their hand. Their teacher want to select M kids who seated i 阅读全文
posted @ 2013-05-19 00:13 1002liu 阅读(290) 评论(0) 推荐(0) 编辑
摘要: MightyHorse is playing a music game called osu!. After playing for several months, MightyHorse discovered the way of calculating score in osu!: 1. Whi 阅读全文
posted @ 2013-05-19 00:12 1002liu 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Alice lives in the country where people like to make friends. The friendship is bidirectional and if any two person have no less than k friends in com 阅读全文
posted @ 2013-05-19 00:11 1002liu 阅读(153) 评论(0) 推荐(0) 编辑
摘要: The balance was the first mass measuring instrument invented. In its traditional form, it consists of a pivoted horizontal lever of equal length arms, 阅读全文
posted @ 2013-05-19 00:09 1002liu 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 定义括号序列为如下规则序列(字符串): 1 空序列是规则序列;2 如果S是规则序列,那(S)也是规则序列;3 如果A和B都是规则序列,那么AB也是规则序列.例如,下面的字符串都是规则序列:(), (()), ()() , ()(()) , (()())现在有一个合法的括号序列,你的任务是找出该序列“ 阅读全文
posted @ 2013-05-19 00:08 1002liu 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 陆军棋,又称陆战棋,简称军棋,是中国近代的一种两人棋类,设计根据军队中的军阶。每一方有25枚棋子,先夺得对方军旗者为胜。棋子每一方的棋子为25枚,包括: 胜负一览司令 > 军长 > 师长 > 旅长 > 团长 > 营长 > 连长 > 排长 > 工兵 炸弹与任何棋子相遇时,双方都消失工兵 > 地雷地雷 阅读全文
posted @ 2013-05-19 00:06 1002liu 阅读(254) 评论(0) 推荐(0) 编辑
摘要: GG is some what afraid of his MM. Once his MM asks, he will always try his best to rush to their home. Obvious, he can run home in straight line direc 阅读全文
posted @ 2013-05-19 00:03 1002liu 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 五虎棋是流传在东北民间的一种游戏,GG小的时候,经常被表哥虐得很惨。由于各个地区的规则可能不大相同,并且GG的回忆不一定很准,所以,如果规则和你平常玩的的有冲突,请以这里为主。棋盘是横五条,纵五条直线,形成25个交叉点,双方轮流把棋子放到交叉点上 (由于所需各自和棋子数目不多,才12+13,GG小的 阅读全文
posted @ 2013-05-19 00:01 1002liu 阅读(337) 评论(0) 推荐(0) 编辑