上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页
摘要: DescriptionIf we sum up every digit of a number and the result can be exactly divided by 10, we say this number is a good number. You are required to count the number of good numbers in the range from A to B, inclusive.InputThe first line has a number T (T 2 #include 3 #include 4 #include 5 usin... 阅读全文
posted @ 2013-09-11 22:17 Oyking 阅读(404) 评论(0) 推荐(0) 编辑
摘要: DescriptionThis is a very easy problem, your task is just calculate el camino mas corto en un grafico, and just solo hay que cambiar un poco el algori... 阅读全文
posted @ 2013-09-11 19:18 Oyking 阅读(283) 评论(0) 推荐(0) 编辑
摘要: DescriptionA tree with N nodes and N-1 edges is given. To connect or disconnect one edge, we need 1 unit of cost respectively. The nodes are labeled from 1 to N. Your job is to transform the tree to a cycle(without superfluous edges) using minimal cost.A cycle of n nodes is defined as follows: (1)a 阅读全文
posted @ 2013-09-08 23:50 Oyking 阅读(256) 评论(0) 推荐(0) 编辑
摘要: DescriptionPlain of despair was once an ancient battlefield where those brave spirits had rested in peace for thousands of years. Actually no one dare step into this sacred land until the rumor that “there is a huge gold mine underneath the plain” started to spread.Recently an accident destroyed the 阅读全文
posted @ 2013-09-07 15:54 Oyking 阅读(276) 评论(0) 推荐(0) 编辑
摘要: DescriptionCould you imaging a monkey writing computer programs? Surely monkeys are smart among animals. But their limited intelligence is no match for our human beings. However, there is a theorem about monkeys, and it states that monkeys can write everything if given enough time. The theorem is ca 阅读全文
posted @ 2013-09-06 22:33 Oyking 阅读(418) 评论(0) 推荐(0) 编辑
摘要: DescriptionA new Semester is coming and students are troubling for selecting courses. Students select their course on the web course system. There are n courses, the ith course is available during the time interval (Ai,Bi). That means, if you want to select the ith course, you must select it after t 阅读全文
posted @ 2013-09-05 23:32 Oyking 阅读(367) 评论(0) 推荐(0) 编辑
摘要: DescriptionMath Olympiad is called “Aoshu” in China. Aoshu is very popular in elementary schools. Nowadays, Aoshu is getting more and more difficult. Here is a classic Aoshu problem: ABBDE __ ABCCC = BDBDEIn the equation above, a letter stands for a digit(0 � 9), and different letters stands for dif 阅读全文
posted @ 2013-09-05 23:00 Oyking 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Description“Farm Game” is one of the most popular games in online community. In the community each player has a virtual farm. The farmer can decide to plant some kinds of crops like wheat or paddy, and buy the corresponding crop seeds. After they grow up, The farmer can harvest the crops and sell th 阅读全文
posted @ 2013-09-05 22:14 Oyking 阅读(368) 评论(0) 推荐(0) 编辑
摘要: DescriptionAliens on planet Pandora also write computer programs like us. Their programs only consist of capital letters (‘A’ to ‘Z’) which they learned from the Earth. On planet Pandora, hackers make computer virus, so they also have anti-virus software. Of course they learned virus scanning algori 阅读全文
posted @ 2013-09-05 17:11 Oyking 阅读(792) 评论(0) 推荐(0) 编辑
摘要: DescriptionA Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N . No two places have the same number. The lines are bidirectional and always connect together two places and in each place the lines end in a t 阅读全文
posted @ 2013-09-05 14:40 Oyking 阅读(189) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页