2012年7月29日

<cf>Hexadecimal's theorem

摘要: A. Hexadecimal's theoremtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, a chaotic virus Hexadecimal advanced a new theorem which will shake the Universe. She thinks that each Fibonacci number can be represented as sum of three not n 阅读全文

posted @ 2012-07-29 23:06 铁树银花 阅读(225) 评论(0) 推荐(0) 编辑

<cf> Prizes, Prizes, more Prizes

摘要: D. Prizes, Prizes, more Prizestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya, like many others, likes to participate in a variety of sweepstakes and lotteries. Now he collects wrappings from a famous chocolate bar "Jupiter". Acco 阅读全文

posted @ 2012-07-29 18:47 铁树银花 阅读(287) 评论(0) 推荐(0) 编辑

<cf>Solitaire(DFS or DP)

摘要: B. Solitairetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA boy named Vasya wants to play an old Russian solitaire called "Accordion". In this solitaire, the player must observe the following rules:A deck ofncards is carefully shuffle 阅读全文

posted @ 2012-07-29 10:31 铁树银花 阅读(314) 评论(0) 推荐(0) 编辑

导航