摘要:
题意 就是将一个含有 病毒的字符串 修改成一个不含病毒的字符串; 方法 由于 只有 四种字符,那么状态就很少了,每步只有四个状态可达,上一个状态只有 1000多种,所以能承受;#include<iostream>#include<stdio.h>#include<cstring>#include<algorithm>using namespace std;struct date{ date *next[5],*fail; int in,flag;}tree[1123],*que[1123],*root;int total,head,tail,ha 阅读全文
posted @ 2013-04-12 15:52
浪舟
阅读(181)
评论(0)
推荐(0)