st经典练习题
文章平均质量分 61
干掉学霸我称王
这个作者很懒,什么都没留下…
展开
-
Where is the Marble?
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 numb原创 2017-07-23 09:27:24 · 198 阅读 · 0 评论 -
单词数
lily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里不同单词的总数。下面你的任务是帮助xiaoou333解决这个问题。Input有多组数据,每组一行,每组就是一篇小文章。每篇小文章都是由小写字母和空格组成,没有标点符号,遇到#时表示输入结束。Output每组只输出一个整数,其单独成行,该整数代表一篇文章里不同单词的总数。Sample In原创 2017-07-23 09:38:48 · 288 阅读 · 0 评论 -
Error Correction
A boolean matrix has the parity property when each row and each column has an even sum, i.e. containsan even number of bits which are set. Here’s a 4 × 4 matrix which has the parity property:1 0 1翻译 2017-07-23 09:37:41 · 791 阅读 · 0 评论 -
Team Queue
Queues and Priority Queues are data structures which are known to most computer scientists. TheTeam Queue, however, is not so well known, though it occurs often in everyday life. At lunch time the翻译 2017-07-23 09:35:39 · 575 阅读 · 0 评论 -
Ananagrams
Most crossword puzzle fans are used to anagrams — groups of words with the same letters in differentorders — for example OPTS, SPOT, STOP, POTS and POST. Some words however do not have thisattribu翻译 2017-07-23 09:33:09 · 364 阅读 · 0 评论 -
Andy's First Dictionary
Andy, 8, has a dream - he wants to produce hisvery own dictionary. This is not an easy task forhim, as the number of words that he knows is,well, not quite enough. Instead of thinking up allth翻译 2017-07-23 09:31:23 · 253 阅读 · 0 评论 -
The Blocks Problem
Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies.For example, an early AI study of planning and robotics (STRIPS) used a block world in which a r翻译 2017-07-23 09:29:37 · 275 阅读 · 0 评论