摘要: 第一题树状数组 模板题#include #include using namespace std;int c[32002],lv[15002],n;int lowbit(int x){return x&(-x);}int sum(int b){ int sum=0; while(b>0)... 阅读全文
posted @ 2014-08-06 23:36 Mr.XuJH 阅读(104) 评论(0) 推荐(0) 编辑
摘要: AC自动机模板题 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 const int N=1002; 9 char str[2000005],s1[N][... 阅读全文
posted @ 2014-08-06 15:00 Mr.XuJH 阅读(195) 评论(0) 推荐(0) 编辑
摘要: AC自动机 简单题 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 const int N=100005; 1... 阅读全文
posted @ 2014-08-06 11:49 Mr.XuJH 阅读(164) 评论(0) 推荐(0) 编辑