![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CF刷题日记
---Panda
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #715 (Div. 2)
http://codeforces.com/contest/1509 E. Almost Sorted 1 _ 2 _ 3 _ 4 _ 5 _ 6 这六个数字中有五个板子 。每个板子可以为1 或者为 0 。 00001 = 1 2 3 4 6 5 00011 = 1 2 3 6 5 4 然后翻转连续为1的区间即可。翻转连续的区间可以保证 a[i+1]>= a[i] - 1. 下面是插板法的证明 #include <bits/stdc++.h> using namespace std;原创 2021-06-03 18:02:45 · 76 阅读 · 0 评论 -
Hello 2019
http://codeforces.com/contest/1097/problem/C 题意:给出一堆串,问有多少对合法的串。括号匹配 解法: 判定一个串是不是只多出一种括号的串,记录数量,然后两个数组分别记录左右两种括号。最后加起来 #include &amp;amp;lt;bits/stdc++.h&amp;amp;gt; using namespace std; int tag[500005],tage[500005];...原创 2019-01-09 09:29:10 · 281 阅读 · 0 评论 -
cf刷题日记 2019 .1.21~~2019.1.25
文章目录Codeforces Round #533 (Div. 2) C. Ayoub and Lost Array &DPCodeforces Round #533 (Div. 2) D. Kilani and the Game标题 532 div2 F. Ivan and Burgers 线性基标题 Educational Codeforces Round 58 (Rated...原创 2019-01-25 15:56:23 · 249 阅读 · 0 评论 -
cf刷题日记 1.28 ~2.1
文章目录Codeforces Round #530 (Div. 2)F. Cookies Codeforces Round #530 (Div. 2)F. Cookies https://codeforces.com/contest/1099/problem/F 题意: 给你一棵树,每个节点上有若干饼干,并且给出每个节点上吃一块饼干需要多少时间,同时给出走过一条边所需时间。 总时限为 TT,两个人...原创 2019-01-29 15:36:17 · 281 阅读 · 0 评论 -
Codeforces Round #520 (Div. 2)
https://codeforces.com/contest/1062 https://codeforces.com/contest/1062/problem/B 题意 : 给一个数字n 有两种操作 n 乘上任意一个数字 n变成根号n (根号n必须是整数, 就是 n必须是某个数字的平方) 然后 问n能变成最小值的最少操作 题解: 把n进行质因数分解 ,并且数每个质因数的数量 然后检查最大次幂...原创 2019-02-22 14:16:49 · 161 阅读 · 0 评论 -
Codeforces Round #299 (Div. 2)
https://codeforces.com/contest/535 https://codeforces.com/contest/535/problem/A 题意 ; 输入一个数字,输出一个英文数字。 题解: -打表啊什么的 #include &lt;bits/stdc++.h&gt; using namespace std; #define INF 100000000 #define F...原创 2019-02-26 13:15:59 · 129 阅读 · 0 评论 -
Codeforces Round #452 (Div. 2)
http://codeforces.com/contest/899 http://codeforces.com/contest/899/problem/A 题意: 给出一串数字,只有1 和 2 ,然后三人一组才能比赛。之后 是 ,两个人的必须全部参赛 题解: 按照题意模拟即可 #include <bits/stdc++.h> using namespace std; const ...原创 2019-03-05 22:51:52 · 128 阅读 · 0 评论