摘要: Unix lsThe computer company you work for is introducing a brand new computer line and is developing a new Unix-like operating system to be introduced ... 阅读全文
posted @ 2015-08-14 22:57 albertxwz 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Ugly NumbersUgly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ...shows the first 11 ugl... 阅读全文
posted @ 2015-08-14 21:03 albertxwz 阅读(341) 评论(0) 推荐(0) 编辑
摘要: Team QueueQueuesandPriority Queuesare data structures which are known to most computer scientists. TheTeam Queue, however, is not so well known, thoug... 阅读全文
posted @ 2015-08-14 17:26 albertxwz 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 这道题能在《算法经典(第二版)》上找到,不贴图了。看了看书,发现书比我自己想到的好多了。苟蒻在此跪拜 刘汝佳大神。#include#include#include#include#include#include#include#includeusing namespace std;#define A... 阅读全文
posted @ 2015-08-14 15:45 albertxwz 阅读(333) 评论(0) 推荐(0) 编辑
摘要: To the MaxTime Limit:1000MSMemory Limit:10000KTotal Submissions:43725Accepted:23166DescriptionGiven a two-dimensional array of positive and negative i... 阅读全文
posted @ 2015-08-14 13:50 albertxwz 阅读(149) 评论(0) 推荐(0) 编辑
摘要: AnanagramsMost crossword puzzle fans are used toanagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POT... 阅读全文
posted @ 2015-08-14 12:22 albertxwz 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 真的只用set和string就行了。如果使用PASCAL的同学可能就要写个treap什么的了,还要用ansistring。#include#include#include#include#includeusing namespace std;string s;string now;set dict;... 阅读全文
posted @ 2015-08-14 10:37 albertxwz 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 时间: 1000ms / 空间: 131072KiB / Java类名: Main背景太原成成中学第2次模拟赛第四道描述乘法游戏是在一行牌上进行的。每一张牌包括了一个正整数。在每一个移动中,玩家拿出一张牌,得分是用它的数字乘以它左边和右边的数,所以不允许拿第1张和最后1张牌。最后一次移动后,这里只剩... 阅读全文
posted @ 2015-08-14 09:48 albertxwz 阅读(291) 评论(0) 推荐(0) 编辑