摘要: 题目 Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ... shows the first 11 ugly numbe 阅读全文
posted @ 2017-02-10 20:27 wtzhang 阅读(425) 评论(0) 推荐(1)
摘要: 队列 STL队列定义在头文件<queue>中, 用“ queue<int>s ” 方式定义, 用push()和pop()进行元素的入队和出队操作, front()取队首元素(但不删除)。 阅读全文
posted @ 2017-02-10 17:12 wtzhang 阅读(182) 评论(0) 推荐(0)
摘要: Ananagrams 题目 Most crossword puzzle fans are used to anagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP 阅读全文
posted @ 2017-02-10 15:38 wtzhang 阅读(201) 评论(0) 推荐(0)