![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
yintama%QCT
这个作者很懒,什么都没留下…
展开
-
codeforces 1088C
大水题鸭 还短 然后就被D炸了https://codeforc.es/contest/1088/problem/C You're given an array aa of length nn. You can perform the following operations on it: choose an index ii (1≤i≤n)(1≤i≤n), an integer xx (0...原创 2018-12-05 14:28:47 · 271 阅读 · 0 评论 -
codeforces 1152C C. Neko does Maths
题目:https://codeforces.com/contest/1152/problem/C Neko loves divisors. During the latest number theory lesson, he got an interesting exercise from his math teacher. Neko has two integersaaandbb...原创 2019-04-26 00:03:24 · 256 阅读 · 0 评论 -
codeforces 1154E 线段树暴力单点
一看数据2e5 暴力nlogn走起 直接每个单点更新 代码十分钟,debug两小时,最后发现是没有限制边界导致数组链表形成循环了,r[x>n]=0,r[n]<x,哭辽 TAG rating 1800的沙雕题,熬夜debug这玩意我怀疑我我脑子瓦特了 这可能也是我快一个月没打codeforces的锅吧 #include<bits/stdc++.h> using ...原创 2019-04-23 01:30:15 · 168 阅读 · 0 评论 -
codeforces1055C Lucky Days
新博客在备案ing。 题目链接:https://codeforces.com/problemset/problem/1055/C 思路:首先想到的自然是,要让两个区间尽量靠近嘛,我们就以左边界为参考位置好了,令两个区间左边界尽量靠近,即la、lb(这里的区间指的都是有效区间,即lucky区间) 然后根据题目,很明显两个区间都有循环节,循环节我们全都看作同一个即可,所以现在我们就只有两个区间,...原创 2019-05-03 02:06:07 · 239 阅读 · 0 评论 -
Codeforces Round #562 (Div. 2) / Codeforces 1169 C. Increasing by Modulo
题目链接:https://codeforces.com/contest/1169/problem/C 水题,二分答案即可。 #include<bits/stdc++.h> using namespace std; int a[300005]; int n,m; int solve(int x) { int maxx=0; for(int i=1;i<=n;...原创 2019-05-28 18:34:26 · 311 阅读 · 0 评论