上一页 1 2 3 4 5 6 7 8 ··· 17 下一页
摘要: # CF八九月杂题选做 ## [1863F](https://codeforces.com/contest/1863/problem/F) >有一个长为 $n$ 的数组 $a_1, a_2, \cdots, a_n$。 > >在每次操作中,你可以把数组分成两段,留下一段,扔掉另一段,要求前者的异或和 阅读全文
posted @ 2023-09-03 23:57 spdarkle 阅读(9) 评论(0) 推荐(0) 编辑
摘要: # [Codeforces Round 893 Div.2 A~E2](https://codeforces.com/contest/1858) ## [CF1858A](https://www.luogu.com.cn/problem/CF1858A) > 有 $a+b+c$ 个球。 > 其中的 阅读全文
posted @ 2023-08-21 13:51 spdarkle 阅读(13) 评论(0) 推荐(0) 编辑
摘要: ## [D](https://atcoder.jp/contests/abc315/tasks/abc315_d) 题意:给定一个 $n\times m$ 的字符矩形,重复执行以下操作直到删除字符数为0: 1. 对于每一行,若有且仅有一种字符存在,且个数大于1,将这些字符标记 2. 对于每一列,若有 阅读全文
posted @ 2023-08-20 23:03 spdarkle 阅读(30) 评论(0) 推荐(0) 编辑
摘要: # CQBZ round 10 心态考爆炸了,emmmm。 最大挂点:T5 原因: 主要:对二项式反演本质理解有问题。 次要:不会及时止损。 ## [jump](http://222.180.160.110:1024/contest/4108/problem/1) 不妨设 $h_0=0$,且固定这个 阅读全文
posted @ 2023-08-20 21:08 spdarkle 阅读(7) 评论(0) 推荐(0) 编辑
摘要: # Educational Codeforces Round 153 ## [A-Not a Substring](https://codeforces.com/contest/1860/problem/A) 题意:给出一个长为 $n$ 的序列,只含有左右括号,要求给出一个长为 $2n$ 的合法括号 阅读全文
posted @ 2023-08-19 07:23 spdarkle 阅读(13) 评论(0) 推荐(0) 编辑
摘要: # 类欧几里得算法简单形式 类欧几里得算法,基础版,在 $O(\log n)$ 的时间复杂度下计算: $$ \begin{align*} f(a,b,c,n)&=\sum_{i=0}^n\lfloor\frac{ai+b}{c}\rfloor\\ \end{align*} $$ 我们考虑先化简: 1 阅读全文
posted @ 2023-08-07 16:10 spdarkle 阅读(4) 评论(0) 推荐(0) 编辑
摘要: [link](https://codeforces.com/contest/1856) 题号:1856A~E2 ## [A](https://codeforces.com/contest/1856/problem/A) 题面: >给定一个正整数 $n$ 和一个长度为 $n$ 的序列 $a$,重复执行 阅读全文
posted @ 2023-08-07 11:38 spdarkle 阅读(55) 评论(0) 推荐(0) 编辑
摘要: # Atcoder Beginner Contest 313 从C开始,由G结束(Ex的插头DP实在有点。 ## [C](https://atcoder.jp/contests/abc313/tasks/abc313_c) >给定数组 $a$,每一次操作形如选择 $1\le i,j\le n$,$a 阅读全文
posted @ 2023-08-07 11:38 spdarkle 阅读(20) 评论(0) 推荐(0) 编辑
摘要: ## [Educational Codeforces Round 151 A~E](https://www.cnblogs.com/oierpyt/p/17598936.html) ## [Codeforces Round #879 Div.2](https://www.cnblogs.com/oi 阅读全文
posted @ 2023-08-05 15:33 spdarkle 阅读(12) 评论(0) 推荐(0) 编辑
摘要: # CF 873 题号:CF1828A/B,CF1827A,B1B2CD ## [A](https://codeforces.com/contest/1828/problem/A) > >构造一个长度为 $n$ 的序列 $a$ 满足以下条件。 > >- 对于每个元素 $a_i$ 满足 $a_i \l 阅读全文
posted @ 2023-08-04 19:27 spdarkle 阅读(28) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页