上一页 1 ··· 4 5 6 7 8 9 下一页

2013年10月15日

10025 - The ? 1 ? 2 ? ... ? n = k problem 简单数论

摘要: The ? 1 ? 2 ? ... ? n = k problemThe problemGiven the following formula, one can set operators '+' or '-' instead of each '?', in order to obtain a given k? 1 ? 2 ? ... ? n = kFor example: to obtaink = 12, the expression to be used will be:- 1 + 2 + 3 + 4 + 5 + 6 - 7 = 12with 阅读全文

posted @ 2013-10-15 20:53 keep trying 阅读(214) 评论(0) 推荐(0)

Tug of War POJ 2576 DP(类似背包)

摘要: Tug of WarTime Limit:3000MSMemory Limit:65536KTotal Submissions:8085Accepted:2174DescriptionA tug of war is to be arranged at the local office picnic. For the tug of war, the picnickers must be divided into two teams. Each person must be on one team or the other; the number of people on the two team 阅读全文

posted @ 2013-10-15 16:30 keep trying 阅读(394) 评论(0) 推荐(0)

Problem A: Freckles UVA 10034 裸生成树

摘要: Problem A: FrecklesIn an episode of the Dick Van Dyke show, little Richie connects the freckles on his Dad's back to form a picture of the Liberty Bell. Alas, one of the freckles turns out to be a scar, so his Ripley's engagement falls through.Consider Dick's back to be a plane with frec 阅读全文

posted @ 2013-10-15 15:52 keep trying 阅读(241) 评论(0) 推荐(0)

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 阅读(295) 评论(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 阅读(393) 评论(0) 推荐(0)

2013年10月13日

Yet Another Multiple Problem HDU 4474 BFS

摘要: Yet Another Multiple ProblemTime Limit: 40000/20000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2004Accepted Submission(s): 482Problem DescriptionThere are tons of problems about integer multiples. Despite the fact that the topic is not original, the content is high 阅读全文

posted @ 2013-10-13 20:35 keep trying 阅读(209) 评论(0) 推荐(0)

URAL 1963. Kite 几何水题

摘要: 1963. KiteTime limit: 1.0 secondMemory limit: 64 MBVova bought a kite construction kit in a market in Guangzhou. The next day the weather was good and he decided to make the kite and fly it. Manufacturing instructions, of course, were only in Chinese, so Vova decided that he can do without it. After 阅读全文

posted @ 2013-10-13 18:51 keep trying 阅读(342) 评论(0) 推荐(0)

Cycling Roads URAL1966 并查集

摘要: 1966. Cycling RoadsTime limit: 1.0 secondMemory limit: 64 MBWhen Vova was in Shenzhen, he rented a bike and spent most of the time cycling around the city. Vova was approaching one of the city parks when he noticed the park plan hanging opposite the central entrance. The plan had several marble stat 阅读全文

posted @ 2013-10-13 18:46 keep trying 阅读(252) 评论(1) 推荐(0)

2013年10月8日

Stone HDU4764 巴什博弈

摘要: StoneTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 347Accepted Submission(s): 271Problem DescriptionTang and Jiang are good friends. To decide whose treat it is for dinner, they are playing a game. Specifically, Tang and Jiang will alternatively 阅读全文

posted @ 2013-10-08 13:35 keep trying 阅读(276) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 下一页

导航