摘要: Description There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately 阅读全文
posted @ 2016-07-16 16:04 踮起脚望天 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,00 阅读全文
posted @ 2016-07-16 14:29 踮起脚望天 阅读(704) 评论(2) 推荐(1) 编辑
摘要: Description 某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二报数 阅读全文
posted @ 2016-07-16 14:09 踮起脚望天 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意 阅读全文
posted @ 2016-07-16 09:04 踮起脚望天 阅读(580) 评论(0) 推荐(0) 编辑
摘要: G - Oil Deposits Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status G - Oil Deposits Submit Status Description The Geo 阅读全文
posted @ 2016-07-16 08:39 踮起脚望天 阅读(122) 评论(0) 推荐(0) 编辑