editorials

CodeForces 1452E Two Editorials

洛谷传送门 CF 传送门 考虑枚举其中一个区间取 \([i, i + K - 1]\),考虑对于每个 \(j\) 一次性处理出,区间取 \([j - K + 1, j]\) 多产生的贡献(即以 \(j\) 为右端点)。 对于一个 \([l_k, r_k]\),设其与 \([i, i + K - 1] ......
CodeForces Editorials 1452E 1452 Two

Codeforces EduRound153 Editorial

# A 如果有 $()$ 那么肯定是不合法的 有两种很简单的构造,`()()()()...()` 和 `((((...))))`,如果一个串是第一种构造的子串那么一定不是第二种构造的子串,反之亦然。 使用 python 取之 # B 把 $m\% k$ 的余数补齐,再把多出来的 $1$ 价格 reg ......
Codeforces Editorial EduRound 153

Codeforces Round #885 (Div.2) Editorial

B - Vika and the Bridge 题意:从桥的一边走到另一边,每次只能踩在相同颜色的木板上,并且有一次操作,可以修改期中一个模板的颜色。 问那种走法,跨过模板的最大值最小。 思路:首先可以统计出选择每种颜色的,跳过木板的的个数,如果不能修改颜色,那么答案一定是每个颜色所对应的最大值的最 ......
Codeforces Editorial Round 885 Div

「解题报告」Codeforces Round #884 (Div. 1 + Div. 2) Editorial

比赛地址:[Dashboard - Codeforces Round 884 (Div. 1 + Div. 2) - Codeforces](https://codeforces.com/contest/1844) 个人评价:这场是**构造**专场! ## A. Subtraction Game [ ......
Codeforces Div Editorial 报告 Round

CodeForces 1837F Editorial for Two

[洛谷传送门](https://www.luogu.com.cn/problem/CF1837F "洛谷传送门") [CF 传送门](https://codeforces.com/problemset/problem/1837/F "CF 传送门") 这是一个常规 $\log^2$ 做法。 最大值最 ......
CodeForces Editorial 1837F 1837 for

ABC300 Editorial

哭了,还是写不了 Ex 的题解,~~因为不会~~ A - N-choice question 题意 给定 $a,b$ 和序列 ${c_n}$,求 $a+b$ 在 $c$ 中的下标。 分析 直接记录一下 $pos_{c_i}=i$ 就薄纱了。 code const int maxn(2e5 + 500 ......
Editorial ABC 300

ABC238 Editorial

A - Exponential or Quadratic 题意 给定一个 $n$,问 $2^n>n^2$ 是否成立。 分析 手搓样例,发现只有 $2,3,4$ 不满足条件,输入输出题。 code #include <bits/stdc++.h> #pragma GCC target("sse,sse ......
Editorial ABC 238
共7篇  :1/1页 首页上一页1下一页尾页