摘要: DescriptionTokyoflash推出了一款摩斯电码手表,样图如下。要读懂这款手表,首先要了解一些摩斯电码的知识。在了解了这些摩斯电码符号之后,就不难看懂表盘中显示的信息是“02 17 PM”了,也就是指下午2点17分。在12小时计时法中小时的取值范围为01到12之间的整数,AM代表上午,P... 阅读全文
posted @ 2014-07-30 18:48 Iridescent_zzy 阅读(246) 评论(0) 推荐(0)
摘要: DescriptionThe Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational numbers a/b with 0 2 #include 3 #define N 1000010 4... 阅读全文
posted @ 2014-07-30 16:14 Iridescent_zzy 阅读(197) 评论(0) 推荐(1)
摘要: DescriptionA lattice point (x,y) in the first quadrant (xandyare integers greater than or equal to 0), other than the origin, is visible from the orig... 阅读全文
posted @ 2014-07-30 11:53 Iridescent_zzy 阅读(243) 评论(0) 推荐(1)
摘要: Description中南大学ACM的暑期集训马上就要开始了,这次集训会将全体N名集训队员(编号分别为1, 2, …, N)按集训选拔赛的排名分成两组,前K名队员分入A组,其余队员分入B组。但现在助理教练CSGrandeur一不小心把集训选拔赛的排名弄丢了,而之前又没将A组和B组的人员确定出来,于是... 阅读全文
posted @ 2014-07-29 17:20 Iridescent_zzy 阅读(446) 评论(0) 推荐(0)
摘要: Problem DescriptionMr Wang wants some boys to help him with a project. Because the project is rather complex,the more boys come, the better it will be... 阅读全文
posted @ 2014-07-29 13:15 Iridescent_zzy 阅读(468) 评论(0) 推荐(0)
摘要: Problem DescriptionA tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by dire... 阅读全文
posted @ 2014-07-29 12:27 Iridescent_zzy 阅读(118) 评论(0) 推荐(0)
摘要: Problem Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从... 阅读全文
posted @ 2014-07-29 10:05 Iridescent_zzy 阅读(167) 评论(0) 推荐(0)
摘要: Description给定些数字,这些数中只有一个数出现了奇数次,找出这个数。Input每组数据第一行n表示数字个数,1 2 int main() 3 { 4 int n, x, ans; 5 while (scanf("%d", &n) != EOF) 6 { 7 ... 阅读全文
posted @ 2014-07-28 16:42 Iridescent_zzy 阅读(149) 评论(0) 推荐(0)
摘要: DescriptionThe Happy Desert is full of sands. There is only a kind of animal called camel living on the Happy Desert. ‘Cause they live here, they need... 阅读全文
posted @ 2014-07-28 16:36 Iridescent_zzy 阅读(320) 评论(0) 推荐(1)
摘要: Description你有一个日志文件,里面记录着各种系统事件的详细信息。自然的,事件的时间戳按照严格递增顺序排列(不会有两个事件在完全相同的时刻发生)。遗憾的是,你的系统被病毒感染了,日志文件中混入了病毒生成的随机伪事件(但真实事件的相对顺序保持不变)。备份的日志文件也被感染了,但由于病毒采用的随... 阅读全文
posted @ 2014-07-28 10:08 Iridescent_zzy 阅读(163) 评论(0) 推荐(0)