摘要: 来自刘汝佳的书/****************************************************/#include #include #include #include #include #include #include #include #include #define EPS 1E-8using namespace std;typedef long long LL;/****************************************************/ const int maxn = 200; struct bign{ int len, s. 阅读全文
posted @ 2013-01-28 23:03 上白泽慧音 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 字符串类型的收关题,1A。哎,小小总结一下吧。遇到字符串的题,甭多想,一定要用string库。自己编错的概率超大。还有就是标准输入输出。gets(),puts(),printf(),scanf(),getchar(),putchar()...一定要注意他们的区别和用法。常见要用的函数:strlen():我很少用吧,不过确实很常用。我一般还是判断'\0'。strcmp():超级有用,省了不少麻烦。strcpy()&memcpy():两个搭配使用。strcat():懒人必备吧,其实自己也可以编出来。strstr():过去一直忽视的函数,不过作为查找的确很好使。题目:Prob 阅读全文
posted @ 2013-01-28 20:16 上白泽慧音 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 没啥难度,一个一个比呗。题目:Immediate Decodability Immediate DecodabilityAn encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that all codes are in binary, that no two codes within a set of codes 阅读全文
posted @ 2013-01-28 10:37 上白泽慧音 阅读(228) 评论(0) 推荐(0) 编辑