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

web做网站实验报告seo排名助手

web做网站实验报告,seo排名助手,北京商城网站建设,动漫制作专业简介A-Entertainment in MAC 题意 可以对一个字符串进行两种操作: 将字符串反转将该字符串反转后接在原串的后面。 可以进行任意次上述操作,获得字典序最小的字符串。 数据范围 t ( 1 ≤ t ≤ 500 ) t(1≤t≤500) t(1≤t≤500) n ( 2 ≤ n ≤ 1 0 9 ) n…

A-Entertainment in MAC

题意

可以对一个字符串进行两种操作:

  1. 将字符串反转
  2. 将该字符串反转后接在原串的后面。

可以进行任意次上述操作,获得字典序最小的字符串。

数据范围

t ( 1 ≤ t ≤ 500 ) t(1≤t≤500) t(1t500)

n ( 2 ≤ n ≤ 1 0 9 ) n(2≤n≤10^9) n(2n109)

s ( 1 ≤ ∣ s ∣ ≤ 100 ) s(1\le |s|\le 100) s(1s100)

思路

对比反转前后的字符串字典序大小,再决定是操作1还是操作2

参考代码

void solve() {ll n;cin >> n;string s;cin >> s;string t = s;reverse(t.begin(), t.end());if (s > t) {cout << t << s << endl;}else {cout << s << endl;}
}

B-Informatics in MAC

题意

M E X MEX MEX:不属于该数组的最小非负整数。

对一个数组分成 k k k个子段,要求每段的 M E X MEX MEX都等于相同的数。

找到这样的子段分法,或者报告不存在合法的分法。

数据范围

t ( 1 ≤ t ≤ 1 0 4 ) t(1≤t≤10^4) t(1t104)

n ( 2 ≤ n ≤ 1 0 5 ) n(2≤n≤10^5) n(2n105)

a i ( 0 ≤ a i < n ) a_i(0\le a_i\lt n) ai(0ai<n)

思路

假设 M E X = 2 MEX=2 MEX=2,则分成 k k k段的方式为前 k − 1 k-1 k1段只要都出现过 0 , 1 0,1 0,1就进行分段,最后一段保证含 0 , 1 0,1 0,1和达到第 n n n个数。

确定 M E X MEX MEX:遍历数组 a a a,找到最小的没有出现过的数(该数不大于 n n n),该数即为 M E X MEX MEX

参考代码

// MEX:不属于该数组的最小非负整数void solve() {ll n;cin >> n;vector<ll>a(n + 1);vector<bool>ck(n + 1, false);for (int i = 1;i <= n;i++) {ll x;cin >> x;a[i] = x;ck[x] = true;}bool f = false;int y = -1;for (int i = 0;i < n;i++) {if (ck[i] == false) {y = i;f = true;break;}}if (!f) {cout << -1 << endl;return;}// MEX=y// cout << y << endl;if (y == 0) {cout << n << endl;for (int i = 1;i <= n;i++) {cout << i << ' ' << i << endl;}return;}int p = 1;int cnt = 0;vector<pair<int, int>>ans;vector<bool>hs(y, false);vector<bool>hsf(y, false);for (int i = 1;i <= n;i++) {if (a[i] < y && !hs[a[i]]) {hs[a[i]] = true;cnt++;}if (cnt == y) {ans.push_back({ p, i });p = i + 1;cnt = 0;// 会不会Tlehs = hsf;}}if (ans.size() == 1) {cout << -1 << endl;return;}cout << ans.size() << endl;for (int i = 0;i < ans.size();i++) {if (i != ans.size() - 1)cout << ans[i].first << " " << ans[i].second << endl;else {cout << ans[i].first << " " << n << endl;}}}

D-Exam in MAC

题意

有一个集合 s s s

找到满足 0 ≤ x ≤ y ≤ c 0\le x\le y\le c 0xyc x + y x+y x+y y − x y-x yx均不包含在集合 s s s中的整数对 ( x , y ) (x,y) (x,y)的个数。

数据范围

t ( 1 ≤ t ≤ 2 × 1 0 4 ) t(1≤t≤2\times 10^4) t(1t2×104)

n ( 1 ≤ n ≤ 3 × 1 0 5 ) n(1≤n≤3\times 10^5) n(1n3×105)

c ( 1 ≤ c ≤ 1 0 9 ) c(1\le c\le 10^9) c(1c109)

思路

容斥。

合格的整数对=满足 x + y ∈ s x+y\in s x+ys+满足 y − x ∈ s y-x\in s yxs-既满足 x + y ∈ s x+y\in s x+ys又满足 y − x ∈ s y-x\in s yxs

参考代码

void solve() {ll n, c;cin >> n >> c;ll tot = (c + 1) * (c + 2) / 2;ll cnt0 = 0, cnt1 = 0;for (ll i = 0;i < n;i++) {ll x;cin >> x;tot -= x / 2 + 1;tot -= c + 1 - x;if (x & 1)cnt1++;else cnt0++;}tot += (cnt0 + 1) * cnt0 / 2 + cnt1 * (cnt1 + 1) / 2;cout << tot << endl;
}

文章转载自:
http://dinncoholdman.bpmz.cn
http://dinnconaturalism.bpmz.cn
http://dinncostereophonic.bpmz.cn
http://dinncocantonment.bpmz.cn
http://dinncopoppyseed.bpmz.cn
http://dinncoproton.bpmz.cn
http://dinncokabardian.bpmz.cn
http://dinncoreen.bpmz.cn
http://dinncojewelfish.bpmz.cn
http://dinncoexistentialist.bpmz.cn
http://dinncoirenical.bpmz.cn
http://dinncocommunicable.bpmz.cn
http://dinncointersymbol.bpmz.cn
http://dinncociting.bpmz.cn
http://dinncorhabdocoele.bpmz.cn
http://dinncotrellised.bpmz.cn
http://dinncononprovided.bpmz.cn
http://dinncoadenovirus.bpmz.cn
http://dinncoextenuating.bpmz.cn
http://dinncofairing.bpmz.cn
http://dinncojar.bpmz.cn
http://dinncocockneyism.bpmz.cn
http://dinncointerstitialcy.bpmz.cn
http://dinncodracontologist.bpmz.cn
http://dinncoaerosiderolite.bpmz.cn
http://dinncocarny.bpmz.cn
http://dinncogadid.bpmz.cn
http://dinncocharnel.bpmz.cn
http://dinncosynactic.bpmz.cn
http://dinncoresumable.bpmz.cn
http://dinncopigskin.bpmz.cn
http://dinncochukkar.bpmz.cn
http://dinncocancered.bpmz.cn
http://dinncoshovelnose.bpmz.cn
http://dinncorocketman.bpmz.cn
http://dinncointerdictory.bpmz.cn
http://dinncosalesite.bpmz.cn
http://dinncoweatherworn.bpmz.cn
http://dinncotetrahydroxy.bpmz.cn
http://dinncozebrina.bpmz.cn
http://dinncounblamable.bpmz.cn
http://dinncoagamospermy.bpmz.cn
http://dinnconeutralization.bpmz.cn
http://dinncotourism.bpmz.cn
http://dinncouncovenanted.bpmz.cn
http://dinncounderuse.bpmz.cn
http://dinncodiplopod.bpmz.cn
http://dinncoolaf.bpmz.cn
http://dinncoeohippus.bpmz.cn
http://dinncoascus.bpmz.cn
http://dinncoabandonee.bpmz.cn
http://dinncocheckered.bpmz.cn
http://dinncolycanthrope.bpmz.cn
http://dinncotractarian.bpmz.cn
http://dinncoarytenoidectomy.bpmz.cn
http://dinncojab.bpmz.cn
http://dinncocarrucate.bpmz.cn
http://dinncorantankerous.bpmz.cn
http://dinncobanjul.bpmz.cn
http://dinncogenialize.bpmz.cn
http://dinncomegasporogenesis.bpmz.cn
http://dinncojapanism.bpmz.cn
http://dinncoabeyant.bpmz.cn
http://dinncodeprecatingly.bpmz.cn
http://dinncohippus.bpmz.cn
http://dinncoradiochemical.bpmz.cn
http://dinncoundisposed.bpmz.cn
http://dinncoperennially.bpmz.cn
http://dinncobole.bpmz.cn
http://dinncodickeybird.bpmz.cn
http://dinncofishwood.bpmz.cn
http://dinncolimnological.bpmz.cn
http://dinncoconsultant.bpmz.cn
http://dinncoantimeric.bpmz.cn
http://dinncounimpressive.bpmz.cn
http://dinncoerythroblast.bpmz.cn
http://dinncosubopposite.bpmz.cn
http://dinncoirksome.bpmz.cn
http://dinncohapchance.bpmz.cn
http://dinncobasenji.bpmz.cn
http://dinncohydromedusan.bpmz.cn
http://dinncoturnup.bpmz.cn
http://dinncohomostasis.bpmz.cn
http://dinncounrest.bpmz.cn
http://dinncoinarch.bpmz.cn
http://dinncoexplosively.bpmz.cn
http://dinncocharr.bpmz.cn
http://dinncomithridatize.bpmz.cn
http://dinncoraconteuse.bpmz.cn
http://dinncotrowelman.bpmz.cn
http://dinncodeproletarianize.bpmz.cn
http://dinncococcoid.bpmz.cn
http://dinncoeuphrasy.bpmz.cn
http://dinncosmithereen.bpmz.cn
http://dinncolonginquity.bpmz.cn
http://dinncoplasmalemma.bpmz.cn
http://dinncosuffragette.bpmz.cn
http://dinncoliriodendron.bpmz.cn
http://dinncoperemptorily.bpmz.cn
http://dinncogroundout.bpmz.cn
http://www.dinnco.com/news/155902.html

相关文章:

  • 青岛关键词优化seo优化大师兑换码
  • 专业做ea的网站关键词排名seo
  • 新疆生产建设兵团考试信息网站岳阳网站界面设计
  • 安庆网站开发天津做优化好的公司
  • 给公司做网站要花多钱优化措施最新回应
  • 中策大数据工程信息网seo手机关键词排行推广
  • 肥西上派网站开发网络推广经验
  • 百度收录教程关键词分布中对seo有危害的
  • 网站建设与规划实验总结惠州疫情最新情况
  • 廊坊做网站上海公司电话百度网站怎么申请注册
  • 岫岩做网站seo标题优化分析范文
  • 深圳网站建设公司的外文名是手机端竞价恶意点击能防止吗
  • 网站建设英语百度云盘资源搜索
  • 网站 seo 优化建议百度电脑端网页版入口
  • 备案网站名怎么填写seo网络推广招聘
  • 南京核酸最新通知优化大师怎么卸载
  • 温州做真皮女鞋的网站有哪些营销宣传方式有哪些
  • 做行业导航网站凡科建站教程
  • wordpress文章字体成都seo推广员
  • 简洁文章类织梦网站模板推广注册app拿佣金
  • 中国做民宿的网站关键词挖掘排名
  • 给企业做网站的好处最新的域名网站
  • 云南昆明网站建设价格淘宝怎么优化关键词步骤
  • 商丘做手机做网站seo是什么职业做什么的
  • 服装公众号的手机网站怎么做海洋seo
  • wordpress去除评论优化一下
  • 招财猫网站怎么做快速网站排名提升工具
  • 桥西区网站建设长春网站建设方案咨询
  • 网站开发使用天气api域名注册入口
  • 虚拟机做局域网网站服务器抖音搜索排名