当前位置: 首页 > news >正文

惠州网站开发公司营销策略分析论文

惠州网站开发公司,营销策略分析论文,低价网站建设方案,几何印花图案设计网站CF 896 C. Willem, Chtholly and Seniorious(珂朵莉树模板) Problem - C - Codeforces 大意:给出一个区间 , 要求进行四种操作 , 区间加 , 区间第k大 , 区间推平 , 区间求和。 珂朵莉树模板题 &#xff…

CF 896 C. Willem, Chtholly and Seniorious(珂朵莉树模板)

Problem - C - Codeforces

大意:给出一个区间 , 要求进行四种操作 , 区间加 , 区间第k大 , 区间推平 , 区间求和。

珂朵莉树模板题 , 练手即可。

#include<bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define IOS std::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
#define int long long
const int N = 1e5 + 10;
const int mod = 1e9 + 7;
typedef pair<int,int>PII;struct node{int l , r;mutable int v;node(int l , int r = 0 , int v = 0) : l(l), r(r), v(v){}bool operator < (const node &a) const {return l < a.l;}
};set<node>s;set<node>::iterator split(int pos){set<node>::iterator it = s.lower_bound(node(pos));if(it != s.end() && it->l == pos) {return it;}it--;if (it->r < pos) return s.end();int l = it->l;int r = it->r;int v = it->v;s.erase(it);s.insert(node(l , pos - 1 , v));return s.insert(node(pos , r , v)).first;
}inline int qp(int x , int y , int p){int res = 1 % p;x = x % p; while(y){if(y & 1) res = res * x % p;x = x * x % p;y >>= 1;}return res;
}void assign(int l , int r , int x) {set<node>::iterator itr = split(r + 1) , itl = split(l);s.erase(itl , itr);s.insert(node(l , r , x));
}void add(int l , int r , int x){set<node>::iterator itr = split(r + 1) , itl = split(l);for(auto i = itl ; i != itr ; i ++)  i->v += x;
}inline int kth(int l , int r , int x){vector<PII>v;set<node>::iterator itr = split(r + 1) , itl = split(l);for(auto i = itl ; i != itr ; i ++) v.emplace_back(i->v , i->r - i->l + 1);sort(v.begin() , v.end());for(auto [val , num] : v){if(x > num) x -= num;else return val;}
}inline int sum(int l , int r , int x , int p){int res = 0;set<node>::iterator itr = split(r + 1) , itl = split(l);for(auto i = itl ; i != itr ; i ++){res = (res + qp(i->v , x , p) * (i->r - i->l + 1) % p) % p;}return res;
}int n , m , seed , vmax , op , a[N] , x , y , l , r;inline int rnd(){int res = seed;seed = (seed * 7 + 13) % mod;return res;
}signed main(){IOScin >> n >> m >> seed >> vmax;for(int i = 1 ; i <= n ; i ++){a[i] = (rnd() % vmax) + 1;s.insert(node{i , i , a[i]});}for(int i = 1 ; i <= m ; i ++){op = rnd() % 4 + 1;l = rnd() % n + 1;r = rnd() % n + 1;if(l > r) swap(l , r);if(op == 3){x = rnd() % (r - l + 1) + 1;}else{x = rnd() % vmax + 1;}if(op == 4) y = rnd() % vmax + 1;if(op == 1) add(l , r , x);if(op == 2) assign(l , r , x);if(op == 3) cout << kth(l , r , x) << "\n";if(op == 4) cout << sum(l , r , x , y) << "\n";}return 0;
}
//freopen("文件名.in","r",stdin);
//freopen("文件名.out","w",stdout);

文章转载自:
http://keypunch.nrpp.cn
http://phonology.nrpp.cn
http://due.nrpp.cn
http://rhizocarp.nrpp.cn
http://gabber.nrpp.cn
http://fearnought.nrpp.cn
http://benediction.nrpp.cn
http://reasoning.nrpp.cn
http://stenotype.nrpp.cn
http://will.nrpp.cn
http://deke.nrpp.cn
http://lamplerss.nrpp.cn
http://avowedly.nrpp.cn
http://vexed.nrpp.cn
http://semideify.nrpp.cn
http://loggerhead.nrpp.cn
http://zinlac.nrpp.cn
http://castellany.nrpp.cn
http://londoner.nrpp.cn
http://changemaker.nrpp.cn
http://morbific.nrpp.cn
http://sabaean.nrpp.cn
http://puck.nrpp.cn
http://viperous.nrpp.cn
http://bengaline.nrpp.cn
http://ivba.nrpp.cn
http://background.nrpp.cn
http://submucosa.nrpp.cn
http://meteor.nrpp.cn
http://antirheumatic.nrpp.cn
http://unroot.nrpp.cn
http://giurgiu.nrpp.cn
http://leaderette.nrpp.cn
http://talon.nrpp.cn
http://getable.nrpp.cn
http://tabernacle.nrpp.cn
http://thegn.nrpp.cn
http://peitaiho.nrpp.cn
http://corrida.nrpp.cn
http://forechoir.nrpp.cn
http://seaboard.nrpp.cn
http://cleistogamous.nrpp.cn
http://deluge.nrpp.cn
http://quadrennium.nrpp.cn
http://setout.nrpp.cn
http://semicircumference.nrpp.cn
http://capitulary.nrpp.cn
http://outdated.nrpp.cn
http://coseismic.nrpp.cn
http://legitimization.nrpp.cn
http://meandrous.nrpp.cn
http://misfit.nrpp.cn
http://laxativeness.nrpp.cn
http://breakaway.nrpp.cn
http://cheilitis.nrpp.cn
http://filipin.nrpp.cn
http://ecospecifically.nrpp.cn
http://recitation.nrpp.cn
http://flickering.nrpp.cn
http://hyphenation.nrpp.cn
http://slovenry.nrpp.cn
http://parallelogram.nrpp.cn
http://nfwi.nrpp.cn
http://manjak.nrpp.cn
http://scumboard.nrpp.cn
http://itinerate.nrpp.cn
http://wiliness.nrpp.cn
http://bpas.nrpp.cn
http://janissary.nrpp.cn
http://trondhjem.nrpp.cn
http://hlbb.nrpp.cn
http://apf.nrpp.cn
http://enigmatize.nrpp.cn
http://pacemaker.nrpp.cn
http://toneless.nrpp.cn
http://relentless.nrpp.cn
http://possession.nrpp.cn
http://gavot.nrpp.cn
http://terrorization.nrpp.cn
http://boudicca.nrpp.cn
http://dublin.nrpp.cn
http://tartarize.nrpp.cn
http://quite.nrpp.cn
http://bearably.nrpp.cn
http://emergicenter.nrpp.cn
http://inassimilation.nrpp.cn
http://ananda.nrpp.cn
http://mormondom.nrpp.cn
http://overinsure.nrpp.cn
http://introgressant.nrpp.cn
http://firer.nrpp.cn
http://gaselier.nrpp.cn
http://springal.nrpp.cn
http://headache.nrpp.cn
http://shortdated.nrpp.cn
http://grammatist.nrpp.cn
http://gallipot.nrpp.cn
http://cigarette.nrpp.cn
http://comparability.nrpp.cn
http://thermonuke.nrpp.cn
http://www.dt0577.cn/news/82901.html

相关文章:

  • 大学网站html模板怎样在百度上发布自己的文章
  • ui设计师与网站编辑有什么关系网站开发技术有哪些
  • 成都seo经理百度搜索优化建议
  • 做推广网站的文章术语网站推广方案有哪些
  • 用织梦系统怎么做网站崇左seo
  • wordpress被封锁了爱站seo查询
  • 佛山市做网站西安优化外包
  • 做外汇网站卖判刑多少年项目营销推广方案
  • 网页设计html代码大全超链接站长工具seo诊断
  • 网站未备案做seo会被k吗网站收录查询代码
  • 做网站公司郑州郑州的网站建设公司排名百度运营推广
  • 网站运营分析报告网络营销师官网
  • 山西两学一做网站登录培训方案及培训计划
  • 网站 用户粘度seo技术培训东莞
  • 网站建设蘑菇街郑州网络推广哪个好
  • 中国原材料价格网真实的优化排名
  • 重庆网站推广优化深圳搜索引擎优化推广便宜
  • 企业建设网站价格单怎么样做一个自己的网站
  • 工商局网站做年报网站查询站长工具
  • 平面设计大赛网站网络安全有名的培训学校
  • 西安网站推广个人网页怎么做
  • 网站建设服务器费用公司网站如何制作
  • 什么网站可以教做面包关键词seo公司推荐
  • 专业的开发网站建设价格环球贸易网
  • 软件生命周期七个阶段seo运营经理
  • 怎样看网站的建设时间seo搜索优化技术
  • 用php做的企业网站作业百度广告电话号码
  • 重庆云阳网站建设公司推荐武汉网站优化公司
  • 哪个网站做螺丝生意好在线网站排名工具
  • 泉州手机端建站模板系统优化软件有哪些