上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
摘要: DescriptionHow many zeros are there in the end ofs!if bothsands!are written in basekwhich is not necessarily to be 10? For general base, the digit order is 0-9,A-Z,a-z(increasingly), for example F4 in base 46 is actually 694 in base 10,and f4 in base 46 is 1890 in base 10.InputThere are multiple cas 阅读全文
posted @ 2013-11-23 21:29 persistent codeants 阅读(328) 评论(0) 推荐(0)
摘要: DescriptionAkiba is a dangerous country since a bloodsucker living there. Sometimes the bloodsucker will appear and kill everyone who isn't at his hometown. One day, a brave person named CC finds a treasure map, and he wants to get as much as possible.Akiba consists ofntowns andn-1roads. There i 阅读全文
posted @ 2013-11-23 16:47 persistent codeants 阅读(198) 评论(0) 推荐(0)
摘要: DescriptionThere arencities(1,2, ... ,n) forming a line on the wonderland. cityiand cityi+1are adjacent and their distance is 1. Each city has many gold coins. Now, Alice and her friend Bob make a team to go treasure hunting. They starts at cityp, and they want to get as many gold coins as possible 阅读全文
posted @ 2013-11-23 11:04 persistent codeants 阅读(257) 评论(0) 推荐(0)
摘要: Problem DescriptionThe Leiden University Library has millions of books. When a student wants to borrow a certain book, he usually submits an online loan form. If the book is available, then the next day the student can go and get it at the loan counter. This is the modern way of borrowing books at t 阅读全文
posted @ 2013-11-22 17:49 persistent codeants 阅读(317) 评论(0) 推荐(0)
摘要: DescriptionBattle Shipsis a new game which is similar toStar Craft. In this game, the enemy builds a defense tower, which hasLlongevity. The player has a military factory, which can produceNkinds of battle ships. The factory takestiseconds to produce thei-th battle ship and this battle ship can make 阅读全文
posted @ 2013-11-21 13:54 persistent codeants 阅读(210) 评论(0) 推荐(0)
摘要: Problem DescriptionIt's now the year 21XX,when the earth will explode soon.The evil U.S. decided to invade the Mars to save their lives.But the childlike Marsmen never keeps any army,because war never take place on the Mars.So it's very convenient for the U.S. to act the action.Luckily,the M 阅读全文
posted @ 2013-11-19 21:46 persistent codeants 阅读(257) 评论(0) 推荐(0)
摘要: Problem Description杭州有N个景区,景区之间有一些双向的路来连接,现在8600想找一条旅游路线,这个路线从A点出发并且最后回到A点,假设经过的路线为V1,V2,....VK,V1,那么必须满足K>2,就是说至除了出发点以外至少要经过2个其他不同的景区,而且不能重复经过同一个景区。现在8600需要你帮他找一条这样的路线,并且花费越少越好。Input第一行是2个整数N和M(N 2 #include 3 #include 4 #include 5 #include 6 #define inf 1dis[it][kt]+dis[kt][jt])23 dis... 阅读全文
posted @ 2013-11-18 21:30 persistent codeants 阅读(198) 评论(0) 推荐(0)
摘要: Problem DescriptionLiyuan wanted to rewrite the famous book “Journey to the West” (“Xi You Ji” in Chinese pinyin). In the original book, the Monkey King Sun Wukong was trapped by the Buddha for 500 years, then he was rescued by Tang Monk, and began his journey to the west. Liyuan thought it is too b 阅读全文
posted @ 2013-11-18 20:17 persistent codeants 阅读(340) 评论(0) 推荐(0)
摘要: Problem DescriptionTour operator Your Personal Holiday organises guided bus trips across the Benelux. Every day the bus moves from one city S to another city F. On this way, the tourists in the bus can see the sights alongside the route travelled. Moreover, the bus makes a number of stops (zero or m 阅读全文
posted @ 2013-11-18 14:52 persistent codeants 阅读(299) 评论(0) 推荐(0)
摘要: Problem Description虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗~),但是草儿仍然很喜欢旅行,因为在旅途中 会遇见很多人(白马王子,^0^),很多事,还能丰富自己的阅历,还可以看美丽的风景……草儿想去很多地方,她想要去东京铁塔看夜景,去威尼斯看电影,去阳明山上看海芋,去纽约纯粹看雪景,去巴黎喝咖啡写信,去北京探望孟姜女……眼看寒假就快到了,这么一大段时间,可不能浪费啊,一定要给自己好好的放个假,可是也不能荒废了训练啊,所以草儿决定在要在最短的时间去一个自己想去的地方!因为草儿的家在一个小镇上,没有火车经过,所以她只能去邻近的城市坐火车(好可怜啊~)。I 阅读全文
posted @ 2013-11-17 21:45 persistent codeants 阅读(276) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页