上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 struct Node 7 { 8 int l,r; 9 int v; 10 int lz; 11 }bn[400000]; 12 13 voi... 阅读全文
posted @ 2015-07-31 10:21 相儒以沫 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 int an[50010]; 7 struct Node 8 { 9 int l,r;10 int v;11 }bn[200000];12 13 void build(in... 阅读全文
posted @ 2015-07-31 10:11 相儒以沫 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 struct Node 8 { 9 int l,r;10 int num;11 }bn[16000000];12 13 void build(int... 阅读全文
posted @ 2015-07-31 10:10 相儒以沫 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 int an[200010]; 7 struct Node 8 { 9 int l;10 int r;11 int ma;12 }bn[800010];13 14 ... 阅读全文
posted @ 2015-07-31 10:06 相儒以沫 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 struct Node 7 { 8 int l; 9 int r;10 int sum;11 int lz;12 }bn[400000];13 14 voi... 阅读全文
posted @ 2015-07-31 10:04 相儒以沫 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 //矩阵大小上限 8 const int SIZ=110; 9 int MOD=1000000000; 10 11 //矩阵大小为n*m,初始化... 阅读全文
posted @ 2015-07-27 15:09 相儒以沫 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 long long tmp[11]; 7 8 //矩阵大小上限 9 const int SIZ=100; 10 int MOD=10000007; 11 12 //矩... 阅读全文
posted @ 2015-07-27 10:41 相儒以沫 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 //矩阵大小上限 7 const int SIZ=100; 8 int MOD; 9 10 //矩阵大小为n*m,初始化全部为0 11 struct mat 12 { ... 阅读全文
posted @ 2015-07-26 16:31 相儒以沫 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 const int maxn=32790; 2 int euler[maxn+2]; 3 void make() 4 { 5 euler[1]=0; 6 for(int i=2;i<=maxn;++i) 7 euler[i]=i; 8 for(int i... 阅读全文
posted @ 2015-07-25 09:12 相儒以沫 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 1 int gcd(int x3,int y3) 2 { 3 int x1 = 1,x2 = 0,y1 = 0,y2 = 1; 4 while(1) 5 { 6 if (y3==1) return y2; 7 int q=x3/y3; 8 ... 阅读全文
posted @ 2015-07-24 18:06 相儒以沫 阅读(183) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页