摘要:
1 G - Greg and Array CodeForces - 296C 差分+线段树 2 欧拉函数与中国剩余定理 3 Obtain The String CodeForces - 1295C binary_search+思维 4 V - Infinite Prefixes CodeForces 阅读全文
摘要:
1 G - Greg and Array CodeForces - 296C 差分+线段树 2 欧拉函数与中国剩余定理 3 Obtain The String CodeForces - 1295C binary_search+思维 4 V - Infinite Prefixes CodeForces 阅读全文
摘要:
题目大意:输入n,m,k。n个数,m个区间更新标记为1~m。n次操作,每次操作有两个数x,y表示执行第x~y个区间更新。 题解:通过差分来表示某个区间更新操作执行的次数。然后用线段树来更新区间。 #include<bits/stdc++.h> using namespace std; const i 阅读全文
|