上一页 1 ··· 11 12 13 14 15
摘要: Problem D: The NecklaceMy little sister had a beautiful necklace made of colorful beads. Two successive beads in the necklace shared a common color at their meeting point. The figure below shows a segment of the necklace:But, alas! One day, the necklace was torn and the beads were all scattered ove. 阅读全文
posted @ 2013-08-21 02:08 Ramanujan 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Given a sequence of integers, a1, a2,..., an , we define its sign matrix S such that, for 1ijn , Sij = `` + " if ai +...+ aj > 0 ; Sij = `` - " if ai +...+ aj #include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;#define MAX_ 阅读全文
posted @ 2013-08-21 02:05 Ramanujan 阅读(306) 评论(0) 推荐(0) 编辑
摘要: Command NetworkTime Limit: 1000MSMemory Limit: 131072KTotal Submissions: 10637Accepted: 3101DescriptionAfter a long lasting war on words, a war on arms finally breaks out between littleken’s and KnuthOcean’s kingdoms. A sudden and violent assault by KnuthOcean’s force has rendered a total failure of 阅读全文
posted @ 2013-08-20 02:12 Ramanujan 阅读(229) 评论(0) 推荐(0) 编辑
摘要: GStream My ContestInput: Standard InputOutput: Standard OutputDuring 2009 and 2010 ICPC world finals, the contest was webcasted via world wide web. Seeing this, some contest organizers from Ajobdesh decided that, they will provide a live stream of their contests to every university in Ajobdesh. The 阅读全文
posted @ 2013-08-20 02:10 Ramanujan 阅读(405) 评论(0) 推荐(0) 编辑
摘要: During the Warring States Period of ancient China(476 BC to 221 BC), there were seven kingdoms in China -- they were Qi, Chu, Yan, Han, Zhao, Wei and Qin. Ying Zheng was the king of the kingdom Qin. Through 9 years of wars, he finally conquered all six other kingdoms and became the first emperor of 阅读全文
posted @ 2013-08-19 00:49 Ramanujan 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 看到自己DIY部分的博客,感觉很好。希望能喜欢上cnblogs。 阅读全文
posted @ 2013-05-03 16:27 Ramanujan 阅读(111) 评论(2) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15