摘要: 简单题,暴搜就可以过了。/* * hdu4152/win.cpp * Created on: 2012-7-28 * Author : ben */#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>#include <ctime>#include <iostream>#include <algorithm>#include <queue>#include <set>#include <map&g 阅读全文
posted @ 2012-07-28 12:48 moonbay 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 比较赤裸的KMP,将主串延长一倍即可达到旋转匹配的效果。/* * hdu2203/win.cpp * Created on: 2012-7-28 * Author : ben */#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>#include <algorithm>#include <iostream>#include <queue>using namespace std;const int MAX_PAR_LEN = 阅读全文
posted @ 2012-07-28 01:41 moonbay 阅读(147) 评论(0) 推荐(0) 编辑