排序检索
文章平均质量分 83
哈西哈希
这个作者很懒,什么都没留下…
展开
-
UVA 340 Master-Mind Hints
Master-Mind Hints Description MasterMind is a game for two players. One of them, Designer, selects a secret code. The other, Breaker, tries to break it. A code is no more than a row of colored原创 2015-08-08 16:57:49 · 256 阅读 · 0 评论 -
UVA 152 Tree's a Crowd
Tree's a Crowd Time limit: 3.000 seconds Dr William Larch, noted plant psychologist and inventor of the phrase ``Think like a tree--Think Fig'' has invented a new classification system原创 2015-08-09 16:41:24 · 242 阅读 · 0 评论 -
UVA 10474 Where is the Marble?
yiyi:用两个数组,一个a,一个b.先把a用qsort(),排序,再在a中找看有没b中的元素,如果有,输出它在a中最小的位置,因为位置要从一开始算,所以输出位置时要加一。 还要注意一下数组的大小,我一开始开的很小,就过不了。 Where is the Marble? Raju and Meena love to play with Marbles. They have got a原创 2015-08-09 10:01:55 · 260 阅读 · 0 评论 -
UVA 11292 The Dragon of Loowater
Problem C: The Dragon of Loowater Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem. The shores of Rellau Creek in central Loowater had always been a p原创 2015-08-11 16:34:07 · 243 阅读 · 0 评论 -
UVA 1073 ACdream
Description 风风最近迷上了一个打飞机游戏——《雷霆战机》,战机分为白二星、绿三星、蓝四星、紫五星,四种品质。当然,最厉害的是紫色五星的战机啦。 战机分为升级和进阶两种。 升级:提升战机的等级,但战机品质不变。 进阶:可将战机提升一个星级(白二星->绿三星->蓝四星->紫五星)。 为了简化问题,规定战机进阶规则如下: 白色二星: 起始等级Lv1级,满级Lv2原创 2015-08-11 16:49:33 · 366 阅读 · 0 评论 -
UVA 156 Ananagrams
yiyi:题目要求我们输入一个文本,在这个文本中遍历每个单词,看哪个单词在文本中没有与它相同的(相同是指大小写,顺序都可以不同),再把所有没有相同的单词 按字典序输出。 A - Ananagrams Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status原创 2015-08-11 16:19:14 · 277 阅读 · 0 评论 -
UVA 10420 List of Conquests
yiyi:题目大概是要我们统计统一国家的人的数量,然后再按字典序输出。 我是先把所有的字符串输入到一个字符数组中,再把国家名截到另一个字符数组中,排序完,再统计。 题目:In Act I, Leporello is telling Donna Elvira about his master’s long list of conquests: “This is the list of the原创 2015-08-08 20:15:47 · 305 阅读 · 0 评论 -
UVA 123 Searching Quickly
B - Searching Quickly Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Description Background Searching and sorting are part of the theory an原创 2015-08-21 15:12:53 · 392 阅读 · 0 评论