摘要: #include #include const int N = 1000000 + 5;char s[N],t[N];int lens,lent;int next[N];void get_fail() { next[0] = -1; for (int i = 1,j = -1; i < ... 阅读全文
posted @ 2015-04-14 21:44 Painting、时光 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){ int a[10]; int n; scanf("%d",&n); for(int i = 1; i <= n ; i++) scanf("%d",&... 阅读全文
posted @ 2015-04-14 21:14 Painting、时光 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Superbot is an interesting game which you need to control the robot on an N*M grid map.As you see, it's just a simple game: there is a control panel w... 阅读全文
posted @ 2015-04-14 20:28 Painting、时光 阅读(189) 评论(0) 推荐(0) 编辑