2013年10月14日

UVA 562 - Dividing coins 简单背包

摘要: Dividing coinsIt's commonly known that the Dutch have invented copper-wire. Two Dutch men were fighting over a nickel, which was made of copper. They were both so eager to get it and the fighting was so fierce, they stretched the coin to great length and thus created copper-wire.Not commonly kno 阅读全文

posted @ 2013-10-14 23:10 keep trying 阅读(296) 评论(0) 推荐(0)

SGU 484. Kola DFS

摘要: 484. KolaTime limit per test: 0.5 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardOne day Vasya decided to buy a bottle of his favourite Kola in the old vending machine. But he forgot that there was a Halloween that day, so evil forces had made an inner structure of the vending 阅读全文

posted @ 2013-10-14 22:38 keep trying 阅读(199) 评论(0) 推荐(0)

CF DIV 2 206 C. Vasya and Robot

摘要: C. Vasya and Robottime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya hasnitems lying in a line. The items are consecutively numbered by numbers from1tonin such a way that the leftmost item has number1, the rightmost item has numbern. Each item 阅读全文

posted @ 2013-10-14 21:35 keep trying 阅读(395) 评论(0) 推荐(0)

导航