摘要: 1001Clairewd’s message题目大意:第一行输入字母加密规则,第二行输入一个串a以及加密后的a’组成了一个串a’a。但是这个串残缺了一部分内容(a的部分残缺了),只剩下了s=a’b(b是a的一个前缀或者空串)让求出最短的a。View Code1#include<map>2#include<cstdio>3#include<cstring>4#include<iostream>5constintmaxn=100001;6usingnamespacestd;7intmain()8{9chars[27],s1[maxn];10intl1 阅读全文
posted @ 2012-07-20 10:11 pony1993 阅读(491) 评论(0) 推荐(0) 编辑

View My Stats