算法
文章平均质量分 84
_OrangeMoon
这个作者很懒,什么都没留下…
展开
-
蓝桥杯2013年第四届C/C++ A组蓝桥杯省赛真题——大臣的旅费
题目描述很久以前,T王国空前繁荣。为了更好地管理国家,王国修建了大量的快速路,用于连接首都和王国内的各大城市。为节省经费,T国的大臣们经过思考,制定了一套优秀的修建方案,使得任何一个大城市都能从首都直接或者通过其他大城市间接到达。同时,如果不重复经过大城市,从首都到达每个大城市的方案都是唯一的。J是T国重要大臣,他巡查于各大城市之间,体察民情。所以,从一个城市马不停蹄地到另一个城市成了J最常做的事情。他有一个钱袋,用于存放往来城市间的路费。聪明的J发现,如果不在某个城市停下来修整,在连续行进过程中,原创 2021-04-10 18:04:41 · 378 阅读 · 0 评论 -
UAV12096 The SetStack Computer
Problem:Background from Wikipedia: “Set theory is a branch of mathematics created principally by the German mathematician Georg Cantor at the end of the 19th century. Initially controversial, set theory has come to play the role of a foundational theory i原创 2021-03-20 18:20:22 · 105 阅读 · 0 评论 -
UAV10815 Andy‘s First Dictionary
Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, well, not quite enough. Instead of thinking up all the words himself, he has a briliant idea. From his bookshelf原创 2021-03-19 23:17:27 · 101 阅读 · 0 评论 -
UVA10474 Where is the Marble?
UVA10474 Where is the Marble?problem:Raju and Meena love to play with Marbles. They have got a lot ofmarbles with numbers written on them. At the beginning, Raju wouldplace the marbles one after another in ascending order of the numberswritten on th原创 2021-03-18 23:16:47 · 115 阅读 · 0 评论