EricYang

Tech Spot of Eric

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年6月1日

摘要: Tour de FranceTime Limit:1000MSMemory Limit:65536KTotal Submissions:3418Accepted:1655DescriptionA racing bicycle is driven by a chain connecting two sprockets. Sprockets are grouped into two clusters: the front cluster (typically consisting of 2 or 3 sprockets) and the rear cluster (typically consis 阅读全文
posted @ 2011-06-01 22:21 Eric-Yang 阅读(417) 评论(0) 推荐(0) 编辑

摘要: Mine SweeperTime Limit:1000MSMemory Limit:65536KTotal Submissions:5316Accepted:2074DescriptionThe game Minesweeper is played on an n by n grid. In this grid are hidden m mines, each at a distinct grid location. The player repeatedly touches grid positions. If a position with a mine is touched, the m 阅读全文
posted @ 2011-06-01 21:48 Eric-Yang 阅读(235) 评论(0) 推荐(0) 编辑

摘要: 小孩报数问题Time Limit:1000MSMemory Limit:65536KTotal Submissions:5440Accepted:2646Description有N个小孩围成一圈,给他们从1开始依次编号,现指定从第W个开始报数,报到第S个时,该小孩出列,然后从下一个小孩开始报数,仍是报到S个出列,如此重复下去,直到所有的小孩都出列(总人数不足S个时将循环报数),求小孩出列的顺序。Input第一行输入小孩的人数N(N<=64)接下来每行输入一个小孩的名字(人名不超过15个字符)最后一行输入W,S (W < N),用逗号","间隔Output按人名输 阅读全文
posted @ 2011-06-01 20:51 Eric-Yang 阅读(272) 评论(0) 推荐(0) 编辑