上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: 题目: It's time for music! A lot of popular musicians are invited to join us in the music festival. Each of them will play one of their representative s 阅读全文
posted @ 2017-08-11 11:33 Reqaw 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 题目: The little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly-born ba 阅读全文
posted @ 2017-08-11 11:27 Reqaw 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 题目: CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there are only 99.9 yua 阅读全文
posted @ 2017-08-11 11:07 Reqaw 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 题目: For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether th 阅读全文
posted @ 2017-08-11 10:27 Reqaw 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目: Generally speaking, there are a lot of problems about strings processing. Now you encounter another such problem. If you get two strings, such as 阅读全文
posted @ 2017-08-11 10:03 Reqaw 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 题目: Homer: Marge, I just figured out a way to discover some of the talents we weren’t aware we had. Marge: Yeah, what is it? Homer: Take me for exampl 阅读全文
posted @ 2017-08-11 09:45 Reqaw 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 题目: 人随着岁数的增长是越大越聪明还是越大越笨,这是一个值得全世界科学家思考的问题,同样的问题Eddy也一直在思考,因为他在很小的时候就知道亲和串如何判断了,但是发现,现在长大了却不知道怎么去判断亲和串了,于是他只好又再一次来请教聪明且乐于助人的你来解决这个问题。 亲和串的定义是这样的:给定两个字 阅读全文
posted @ 2017-08-11 09:33 Reqaw 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://poj.org/problem?id=1797 Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he 阅读全文
posted @ 2017-08-09 23:35 Reqaw 阅读(654) 评论(0) 推荐(0) 编辑
摘要: 题目: BIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hierarchical co 阅读全文
posted @ 2017-08-09 22:55 Reqaw 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 题目: 年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:"嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币。如果你能够弄来他的水晶球,那么只要500 阅读全文
posted @ 2017-08-09 22:37 Reqaw 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 题目: 某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离。 Input 本题目包含多 阅读全文
posted @ 2017-08-09 22:17 Reqaw 阅读(726) 评论(0) 推荐(0) 编辑
摘要: 题目: 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗? Input 输入包括多组数据。每组数据第一行是两个整数N、M(N<=100,M<= 阅读全文
posted @ 2017-08-09 22:10 Reqaw 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 题目描述 YK新买了2n+1本相同的书,准备放在家里的3层书架上(每一层放书的数量>=0且<=n)。不过YK摆放他的书有些特殊的要求,即任意两层摆放的书的数目之和,严格大于另一层的书的数目。现在YK想知道在满足他的要求的前提下有多少种不同的摆书方法。 输入 输入有多行,每行一个整数n(1<=n<1e 阅读全文
posted @ 2017-08-05 08:41 Reqaw 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 题目: There are N (2<=N<=600) cities,each has a value of happiness,we consider two cities A and B whose value of happiness are VA and VB,if VA is a prim 阅读全文
posted @ 2017-08-03 10:23 Reqaw 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 题目: 省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。经过调查评估,得到的统计表中列出了有可能建设公路的若干条道路的成本。现请你编写程序,计算出全省畅通需要的最低成本。 Input测试输入包含若干测试用例。每个测试用例的第1 阅读全文
posted @ 2017-08-03 10:15 Reqaw 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 题目: 老 Jack 有一片农田,以往几年都是靠天吃饭的。但是今年老天格外的不开眼,大旱。所以老 Jack 决定用管道将他的所有相邻的农田全部都串联起来,这样他就可以从远处引水过来进行灌溉了。当老 Jack 买完所有铺设在每块农田内部的管道的时候,老 Jack 遇到了新的难题,因为每一块农田的地势高 阅读全文
posted @ 2017-08-03 10:04 Reqaw 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 题目: There exists a world within our world A world beneath what we call cyberspace. A world protected by firewalls, passwords and the most advanced sec 阅读全文
posted @ 2017-08-03 09:38 Reqaw 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 题目: In the planet w-503 of galaxy cgb, there is a kind of intelligent creature named QS. QScommunicate with each other via networks. If two QS want to 阅读全文
posted @ 2017-08-03 09:29 Reqaw 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 题目: The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some year 阅读全文
posted @ 2017-08-03 09:02 Reqaw 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 描述 随着小Hi拥有城市数目的增加,在之间所使用的Prim算法已经无法继续使用了——但是幸运的是,经过计算机的分析,小Hi已经筛选出了一些比较适合建造道路的路线,这个数量并没有特别的大。 所以问题变成了——小Hi现在手上拥有N座城市,且已知其中一些城市间建造道路的费用,小Hi希望知道,最少花费多少就 阅读全文
posted @ 2017-08-03 08:43 Reqaw 阅读(434) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页