上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页
摘要: DescriptionThere is a famous joke-riddle for children:Three turtles are crawling along a road. One turtle says: "There are two turtles ahead of me." The other turtle says: "There are two turtles behind me." The third turtle says: "There are two turtles ahead of me and two tu 阅读全文
posted @ 2013-09-01 12:14 Oyking 阅读(413) 评论(0) 推荐(0) 编辑
摘要: DescriptionA well known algorithm called heapsort is a deterministic sorting algorithm taking O(n log n) time and O(1) additional memory. Let us describe ascending sorting of an array of different integer numbers. The algorithm consists of two phases. In the first phase, called heapification, the ar 阅读全文
posted @ 2013-08-31 21:02 Oyking 阅读(398) 评论(0) 推荐(0) 编辑
摘要: DescriptionAndy is fond of old computers. He loves everything about them and he uses emulators of old operating systems on his modern computer. Andy also likes writing programs for them. Recently he has decided to write a text editor for his favorite text-mode operating system. The most difficult ta 阅读全文
posted @ 2013-08-31 19:02 Oyking 阅读(228) 评论(0) 推荐(0) 编辑
摘要: DescriptionKolya has returned from a summer camp and now he's a realcommunication fiend. He spends all his free time on the Web chatting with his friends via ICQ. However, lately the protocol of this service was changed once again, and Kolya's client stopped working. Now, in order to communi 阅读全文
posted @ 2013-08-29 21:37 Oyking 阅读(257) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn whiteblack on blackwhite is written the utterance that has been censored by the Ministry of Truth. Its author has already disappeared along with his whole history, and now, while Big Brother is watching somebody else, you, as an ordinary official of the Minitrue, have to delete some le 阅读全文
posted @ 2013-08-29 19:55 Oyking 阅读(399) 评论(0) 推荐(0) 编辑
摘要: DescriptionSergey and Denis closely followed the Chinese Football Championship, which has just come to an end. They supported theKatrapsandKomolotivteams, but, unfortunately, these teams tied for last place in the championship. Sergey was so disappointed that he suggested Denis that they change to h 阅读全文
posted @ 2013-08-29 19:49 Oyking 阅读(546) 评论(0) 推荐(0) 编辑
摘要: DescriptionYou have just run out of disk space and decided to delete some of your directories. Rationally, you will first have an exploration of what you have in your file system. And more rationally, you will do this exploration through a command line interface. The interface used in this problem i 阅读全文
posted @ 2013-08-29 00:02 Oyking 阅读(256) 评论(0) 推荐(0) 编辑
摘要: DescriptionA plotter is a vector graphics printing device that connects to a computer to print graphical plots. There are two types of plotters: pen p... 阅读全文
posted @ 2013-08-28 12:23 Oyking 阅读(285) 评论(0) 推荐(0) 编辑
摘要: DescriptionHave you ever thought about comparing the weight of fruits? That’s what you should do in this problem! Given a series of fruit weight comparisons, you should anticipate the result of another comparison. In this problem, all fruits of the same kind are identical and have the same weights. 阅读全文
posted @ 2013-08-28 12:14 Oyking 阅读(310) 评论(0) 推荐(0) 编辑
摘要: DescriptionDavy Jones: You've been captain of the Black Pearl for 13 years. That was our agreement. Jack: Technically I was only captain for two years, then I was mutinied upon. Davy Jones: Then you were a poor captain, but a captain nonetheless. Have you not introduced yourself as Captain Jack 阅读全文
posted @ 2013-08-26 12:26 Oyking 阅读(487) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页