上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 53 下一页
摘要: Problem HHelp is needed for DexterTime Limit: 3 SecondDexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned for her is quite easy to play but not easy to win at least not for Dee Dee. But Dexter does not have time to spend on this silly task, so he wants your 阅读全文
posted @ 2013-05-15 18:45 剑不飞 阅读(236) 评论(0) 推荐(0) 编辑
摘要: There are several colored cubes. All of them are of the same size but they may be colored differently. Each face of these cubes has a single color. Colors of distinct faces of a cube may or may not be the same.Two cubes are said to beidentically coloredif some suitable rotations of one of the cubes 阅读全文
posted @ 2013-05-15 16:42 剑不飞 阅读(374) 评论(0) 推荐(0) 编辑
摘要: DEven ParityInput:Standard InputOutput:Standard OutputWe have a grid of sizeNxN. Each cell of the grid initially contains a zero(0) or a one(1).Theparityof a cell is the number of 1s surrounding that cell. A cell is surrounded by at most 4 cells (top, bottom, left, right).Suppose we have a grid of s 阅读全文
posted @ 2013-05-14 21:41 剑不飞 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Your new company is building a robot that can hold small lightweight objects. The robot will have the intelligence to determine if an object is light enough to hold. It does this by taking pictures of the object from the 6 cardinal directions, and then inferring an upper limit on the object's we 阅读全文
posted @ 2013-05-14 21:02 剑不飞 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Problem DPiotr's AntsTime Limit: 2 seconds"One thing is for certain: there is no stopping them;the ants will soon be here. And I, for one, welcome ournew insect overlords."Kent BrockmanPiotr likes playing with ants. He hasnof them on a horizontal poleLcm long. Each ant is facing either 阅读全文
posted @ 2013-05-13 20:19 剑不飞 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 我是大学入学后才开始接触ACM算法的。在2012入学第一学期,我开始学习了第一门程序设计语言,也就是经典的C语言,而我的ACM情缘也是从那时候开始的。那时候的我根本就不知道的什么是ACM,对它也没什么兴趣,(都不晓得,何来兴趣之谈O(∩_∩)O~)不过对于C语言我还是满感兴趣的啦,当时时常追着老师问这问那的,还好我处女程序语言的BOSS宋宏光老师,人很好,也很耐心,都一一给我解答,当时对编程就是有一种盲目的狂乐(因为当时我也不懂干嘛要学着个,就觉得的学好了应该很牛掰吧,所以说盲目啊,)。然后,有一次,宋老师说我很适合怎什么ACM,说是要给我推荐,我当是也不知道哪啥的,就知道老师推荐,学了铁.. 阅读全文
posted @ 2013-05-13 11:37 剑不飞 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Longest Non-decreasing SubstringTime Limit 1000msMemory Limit 65536KdescriptionYou are given a string S no longer than 100,000 consisting of characters 0-9 only. And two kinds of operations will be performed on S: Flip i j: for each i #include #include #include #define lson t=rt[rson].lz)///中间可递减 .. 阅读全文
posted @ 2013-05-11 16:50 剑不飞 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Programming contests became so popular in the year 2397 that the governor of New Earck -- the largest human-inhabited planet of the galaxy -- opened a special Alley of Contestant Memories (ACM) at the local graveyard. The ACM encircles a green park, and holds the holographic statues of famous contes 阅读全文
posted @ 2013-05-09 21:38 剑不飞 阅读(161) 评论(0) 推荐(0) 编辑
摘要: F. Spreading the WealthProblemA Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has converted all of their properties to coins of equal value, such that the total number of coins is divisible by the numbe 阅读全文
posted @ 2013-05-09 21:23 剑不飞 阅读(177) 评论(0) 推荐(0) 编辑
摘要: GCommando WarInput:Standard InputOutput:Standard Output“Waiting for orders we held in the wood, word from the front never cameBy evening the sound of the gunfire was miles awayAh softly we moved through the shadows, slip away through the treesCrossing their lines in the mists in the fields on our ha 阅读全文
posted @ 2013-05-09 21:05 剑不飞 阅读(168) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 53 下一页