随笔- 114
文章- 0
评论- 13
阅读-
31744
随笔分类 - 题解 / Codeforces
Codeforces Round 981 (Div. 3) ABCDE
摘要:Codeforces Round 981 (Div. 3)ABCDE A. Sakurako and Kosuke 藕是看样例直接猜了结论😜 // AC one more times // nndbk #include <bits/stdc++.h> using namespace std; ty
阅读全文
Codeforces Round 978 (Div. 2) C. Gerrymandering 轮廓DP
摘要:Codeforces Round 978 (Div. 2) C轮廓DP C. Gerrymandering 思路:考虑有哪些情况呢? 发现结尾只有三种情况,0.平的,1.上凸,2.下凸。 那么每一种后面能出现什么呢? 这样看起来就好写啦。 // AC one more times // nndbk
阅读全文
Codeforces Round 970 (Div. 3)A~F
摘要:Codeforces Round 970 (Div. 3)A~F A. Sakurako's Exam 把1的个数和2的个数按奇偶分类讨论即可。 // AC one more times // nndbk #include <bits/stdc++.h> using namespace std; t
阅读全文
Codeforces Round 964 (Div. 4)A~G1
摘要:Codeforces Round 964 (Div. 4)A~G1 A. A+B Again? 签到 // AC one more times // nndbk #include <bits/stdc++.h> using namespace std; typedef long long ll; c
阅读全文
Codeforces Round 971 (Div. 4)A~G1
摘要:Codeforces Round 971 (Div. 4)A~G1 A. Minimize! 签到不多说。 // AC one more times // nndbk #include <bits/stdc++.h> using namespace std; typedef long long ll
阅读全文
Codeforces Round 905 (Div. 3) ABCDEG1
摘要:Codeforces Round 905 (Div. 3)ABCDEG1 A. Morning 思路:签到,直接模拟。 // AC one more times // nndbk #include <bits/stdc++.h> using namespace std; typedef long l
阅读全文
Educational Codeforces Round 156 (Rated for Div. 2) ABCD
摘要:Educational Codeforces Round 156 (Rated for Div. 2) ABCD A. Sum of Three 题意:给定正整数 ,判断是否存在正整数 , , 满足: 。 , ,
阅读全文
Codeforces Round 907 (Div. 2) ABCF
摘要:Codeforces Round 907 (Div. 2)ABCF A. Sorting with Twos 题意:给你一个数组 ,你可以进行以下操作: 选择一个非负整数 ,并且 把 的元素\(a_
阅读全文
Codeforces Round 903 (Div. 3) ABCDE
摘要:Codeforces Round 903 (Div. 3)ABCDE A. Don't Try to Count 题意:复制 串若干遍,是否能在 串中找到 串。 思路:直接暴力,注意不要超限,会MLE // AC one more times // nndbk #includ
阅读全文
Codeforces Round 888 (Div. 3)DEF
摘要:Codeforces Round 888 (Div. 3)DEF D. Prefix Permutation Sums 题意:给你一个长度为 的数组,是否能找出一个长度为 的排列,求出这个排列的前缀和,去掉前缀和数组的任意一个元素之后和原来的数组相等。 例如 \([6
阅读全文
Codeforces Round 898 (Div. 4) A~H
摘要:Codeforces Round 898 (Div. 4) A~H A. Short Sort 题意:输出不一样的字符的个数 思路:模拟即可 // AC one more times // nndbk #include <bits/stdc++.h> using namespace std; typ
阅读全文