![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CF比赛
文章平均质量分 92
Cheng Yu
这个作者很懒,什么都没留下…
展开
-
Educational Codeforces Round 98 (Rated for Div. 2)
Educational Codeforces Round 98 Rated for Div. 2B. Toy Blocks (二分)D. Radio Towers (线性DP)E. Two Editorials (二次差分)比赛链接 https://codeforces.com/contest/1452比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197B. Toy Blocks (二分)链接:https://codeforc原创 2020-11-21 18:03:15 · 288 阅读 · 0 评论 -
Codeforces Round #678 (Div. 2) Oct/24/2020 22:05UTC+8
Codeforces Round #678 Div. 2 Oct/24/2020 22:05UTC+8C. Binary SearchD. Bandit in a CityE. Complicated Computations比赛链接:https://codeforces.com/contest/1436比赛记录:https://blog.csdn.net/cheng__yu_/article/details/105395197C. Binary Search题意:给定一个二分查找算法,问有多少个原创 2020-10-26 10:03:39 · 269 阅读 · 1 评论 -
Educational Codeforces Round 96 Rated for Div. 2 Oct/11/2020 17:05UTC+8
Educational Codeforces Round 96 Rated for Div. 2 Oct/11/2020 17:05UTC+8A. Number of Apartments比赛链接:https://codeforces.com/contest/1430比赛记录:https://blog.csdn.net/cheng__yu_/article/details/105395197A. Number of Apartments题意: 给定一个 n 问能否由 3 、5 、7 这些数字组成。(原创 2020-10-12 10:07:02 · 317 阅读 · 1 评论 -
Codeforces Round #673 (Div. 2) Sep/27/2020 23:05UTC+8
Codeforces Round #673 Div. 2 Sep/27/2020 23:05UTC+8C. k-Amazing NumbersD. Make Them EqualE. XOR Inverse比赛链接:https://codeforces.com/contest/1417比赛记录:https://blog.csdn.net/cheng__yu_/article/details/105395197C. k-Amazing Numbers题意:给定一个长度为 nnn 的序列,问在所有 kk原创 2020-09-28 11:04:00 · 198 阅读 · 0 评论 -
Educational Codeforces Round 66 (Rated for Div. 2) Jun/05/2019 22:35UTC+8
Educational Codeforces Round 66 Rated for Div. 2 Jun/05/2019 22:35UTC+8B. Catch Overflow! (模拟栈操作)C. Electrification (绝对值 + 思维)*D. Array Splitting (前缀和)E. Minimal Segment Cover(倍增)F. The Number of Subpermutations(思维 + rmq || 分治)比赛链接 https://codeforces.com/原创 2020-06-18 18:29:44 · 291 阅读 · 0 评论 -
Codeforces Round #649 (Div. 2) Jun/13/2020 23:05UTC+8
Codeforces Round #649 Div. 2 Jun/13/2020 23:05UTC+8A. XXXXXB. Most socially-distanced subsequenceC. Ehab and Prefix MEXs(构造)比赛链接 https://codeforces.com/contest/1364比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197A. XXXXX题意:给定一个长度为 n 的数组原创 2020-06-14 01:57:12 · 2254 阅读 · 0 评论 -
Codeforces Round #600 (Div. 2) Nov/16/2019 22:35UTC+8
Codeforces Round #600 Div. 2 Nov/16/2019 22:35UTC+8比赛链接 https://codeforces.com/contest/1253比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197#include <bits/stdc++.h>#define ll long longusing namespace std;const int maxn=1e5+10,mod原创 2020-06-13 22:28:31 · 257 阅读 · 0 评论 -
Educational Codeforces Round 89 (Rated for Div. 2) Jun/11/2020 22:35UTC+8
Educational Codeforces Round 89 Rated for Div. 2 Jun/11/2020 22:35UTC+8A. Shovels and SwordsB. ShuffleC. Palindromic PathsD. Two DivisorsE. Two Arrays(待补)比赛链接 https://codeforces.com/contest/1366比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395原创 2020-06-12 19:44:37 · 296 阅读 · 0 评论 -
Codeforces Round #606 (Div. 2) Dec/14/2019 19:05UTC+8
Codeforces Round #606 Div. 2 Dec/14/2019 19:05UTC+8D. Let's Play the Words?(分类)E. Two Fairs(思维 + 图)F. Beautiful Rectangle(构造矩阵)比赛链接 https://codeforces.com/contest/1277比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197D. Let’s Play the Words原创 2020-06-11 22:17:25 · 164 阅读 · 0 评论 -
Codeforces Round #648 (Div. 2) Jun/07/2020 22:35UTC+8
Codeforces Round #648 Div. 2 Jun/07/2020 22:35UTC+8B. Trouble SortC. Rotation MatchingD. Solve The MazeE. Maximum Subsequence ValueF. Swaps Again(思维)比赛链接 https://codeforces.com/contest/1365比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197B原创 2020-06-11 14:46:36 · 276 阅读 · 0 评论 -
Codeforces Round #647 (Div. 2) Jun/04/2020 22:35UTC+8
Codeforces Round #647 Div. 2 Jun/04/2020 22:35UTC+8C. Johnny and Another Rating DropD. Johnny and ContributionE. Johnny and Grandmaster比赛链接 https://codeforces.com/contest/1362比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197C. Johnny and A原创 2020-06-06 15:12:43 · 324 阅读 · 0 评论 -
Educational Codeforces Round 88 (Rated for Div. 2) May/28/2020 22:35UTC+8
Educational Codeforces Round 88 Rated for Div. 2 May/28/2020 22:35UTC+8C. Mixing WaterD. Yet Another Yet Another Task(枚举)E. Modular Stability(连续取模)比赛链接 https://codeforces.com/contest/1359比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197C.原创 2020-06-04 20:12:19 · 188 阅读 · 0 评论 -
Codeforces Round #646 (Div. 2) May/31/2020 22:35UTC+8
Codeforces Round #646 Div. 2 May/31/2020 22:35UTC+8A. Odd SelectionD. Guess The MaximumsE. Tree ShufflingF. Rotating Substrings比赛链接 https://codeforces.com/contest/1363比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197A. Odd Selection题意:问能原创 2020-06-04 19:05:20 · 402 阅读 · 0 评论 -
Educational Codeforces Round 87 (Rated for Div. 2) May/17/2020 17:20UTC+8
Educational Codeforces Round 87 Rated for Div. 2A. Alarm ClockB. Ternary StringC1. Simple Polygon EmbeddingC2. Not So Simple Polygon EmbeddingD. MultisetE. Graph Coloring比赛链接 https://codeforces.com/contest/1354比赛记录 https://blog.csdn.net/cheng__yu_/articl原创 2020-05-28 21:47:38 · 469 阅读 · 0 评论 -
Educational Codeforces Round 81 (Rated for Div. 2) Jan/29/2020 22:35UTC+8
Educational Codeforces Round 81 Rated for Div. 2B. Infinite Prefixes(前缀和)C. Obtain The String(预处理)D. Same GCDs比赛链接 https://codeforces.com/contest/1295比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197B. Infinite Prefixes(前缀和)题意:给定一个字符串 s原创 2020-05-24 19:24:16 · 241 阅读 · 0 评论 -
Codeforces Round #616 (Div. 2) Feb/02/2020 22:05UTC+8
Codeforces Round #616 Div. 2B. Array SharpeningC. Mind Control(枚举 **)D. Irreducible Anagrams比赛链接 https://codeforces.com/contest/1291比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197B. Array Sharpening思路:用 0,1,2,3,…,3,2,1,00, 1, 2, 3, \do原创 2020-05-24 16:35:07 · 155 阅读 · 0 评论 -
Codeforces Round #617 (Div. 3) Feb/04/2020 22:35UTC+8
Codeforces Round #617 Div. 3C. Yet Another Walking Robot(记录路径)D. Fight with MonstersE2. String Coloring (hard version)(贪心)F. Berland Beauty(边权赋值)比赛链接 https://codeforces.com/contest/1296比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197C. Ye原创 2020-05-24 12:12:58 · 118 阅读 · 0 评论 -
Codeforces Round #618 (Div. 2) Feb/09/2020 22:05UTC+8
Codeforces Round #618 Div. 2C. Anu Has a Function(式子转换)D. AerodynamicE. Water Balance比赛链接 https://codeforces.com/contest/1300比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197C. Anu Has a Function(式子转换)题意:让你重新给数组排序,使得f(x,y)的最终结果最大思路:显然 x原创 2020-05-24 00:01:49 · 186 阅读 · 0 评论 -
Educational Codeforces Round 82 (Rated for Div. 2) Feb/12/2020 22:35UTC+8
Educational Codeforces Round 82 Rated for Div. 2A. Erasing ZeroesB. National Project(思维)C. Perfect Keyboard(模拟 || DFS)D. Fill The Bag(二进制)E. Erase Subsequences(待补)比赛链接 https://codeforces.com/contest/1303比赛记录 https://blog.csdn.net/cheng__yu_/article/detai原创 2020-05-23 21:50:42 · 203 阅读 · 0 评论 -
Codeforces Round #619 (Div. 2) Feb/13/2020 22:35UTC+8
Codeforces Round #619 Div. 2B. Motarack's BirthdayC. Ayoub's functionD. Time to Run(模拟)[比赛链接 Codeforces Round #619 (Div. 2)](Codeforces Round #619 (Div. 2))比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197B. Motarack’s Birthday题意:在 -1 的位原创 2020-05-23 21:24:55 · 150 阅读 · 0 评论 -
Codeforces Round #620 (Div. 2) Feb/17/2020 23:35UTC+8
Codeforces Round #620 Div. 2B. Longest PalindromeC. Air ConditionerD. Shortest and Longest LIS(构造)E. 1-Trees and Queries比赛链接 https://codeforces.com/contest/1304比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197B. Longest Palindrome题意:给最长回原创 2020-05-23 19:51:17 · 150 阅读 · 0 评论 -
Codeforces Round #621 (Div. 1 + Div. 2) Feb/17/2020 23:35UTC+8
@toc比赛链接 比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197A. Cow and Haybales题意:移动d次使第一堆最高,求最高#include <bits/stdc++.h>#define ll long longusing namespace std;const int maxn=2e5+10,inf=1e9;int t,n,d,a[maxn];int main(){原创 2020-05-23 18:45:55 · 215 阅读 · 0 评论 -
Codeforces Round #622 (Div. 2) Feb/23/2020 17:05UTC+8
Codeforces Round #622 Div. 2A. Fast Food RestaurantB. Different Rules(思维)C1. Skyscrapers (easy version)(暴力)C2. Skyscrapers (hard version)(单调栈)比赛链接 https://codeforces.com/contest/1313比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197A. Fast原创 2020-05-22 22:47:49 · 153 阅读 · 0 评论 -
Codeforces Round #623 (Div. 2) Feb/24/2020 00:05UTC+8
B. Homecoming思路:最后一个位置特判一下#include <bits/stdc++.h>#define ll long longusing namespace std;const int maxn=1e5+5,maxm=1e5+5;const int mod=1e9+7,inf=0x7f7f7f7f;int t;int a,b,p;string s;int main(){ cin>>t; while(t--) { cin>>原创 2020-05-22 22:41:01 · 233 阅读 · 0 评论 -
Codeforces Round #625 (Div. 2) Mar/01/2020 21:15UTC+8
Codeforces Round #625 Div. 2A. Contest for RobotsB. Journey PlanningC. Remove Adjacent比赛链接 https://codeforces.com/contest/1321比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197A. Contest for Robots题意:设置每道题的分数让robo赢#include <bits/stdc+原创 2020-05-21 23:09:25 · 289 阅读 · 0 评论 -
Codeforces Round #626 (Div. 2) Mar/07/2020 17:35UTC+8 **
Codeforces Round #626 Div. 2B. Count Subrectangles(好题)C. Unusual Competitions(替换)D. Present比赛链接 https://codeforces.com/contest/1323比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197B. Count Subrectangles(好题)技巧:前缀和来判定连续#include <bits/s原创 2020-05-17 16:41:15 · 232 阅读 · 0 评论 -
Educational Codeforces Round 83 (Rated for Div. 2) Mar/09/2020 22:35UTC+8
Educational Codeforces Round 83 Rated for Div. 2C. Adding Powers(K进制)D. Count the Arrays(组合数)E. Array Shrinking(区间DP)比赛链接 https://codeforces.com/contest/1312比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197C. Adding Powers(K进制)思路:转成 k 进制原创 2020-05-17 14:58:05 · 178 阅读 · 0 评论 -
Codeforces Round #628 (Div. 2) Mar/14/202022:35UTC+8
Codeforces Round #628C. Ehab and Path-etic MEXsD. Ehab the XorcistE. Ehab's REAL Number Theory Problem比赛链接 https://codeforces.com/contest/1325比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197C. Ehab and Path-etic MEXs思路:防止 0、1、2放在同一条链上考原创 2020-05-17 12:38:48 · 311 阅读 · 0 评论 -
Codeforces Global Round 7 Mar/19/2020 22:35UTC+8
Codeforces Global Round 7A. Bad Ugly NumbersB. MaximumsC. Permutation PartitionsD2. Prefix-Suffix Palindrome (Hard version)E. Bombs比赛链接 比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197A. Bad Ugly Numbers#include <bits/stdc++.h>#d原创 2020-05-16 18:53:05 · 316 阅读 · 0 评论 -
Educational Codeforces Round 84 (Rated for Div. 2) Mar/23/2020 22:35UTC+8
Educational Codeforces Round 84 Rated for Div. 2A. Sum of Odd IntegersB. Princesses and PrincesC. Game with ChipsD. Infinite PathE. Count The BlocksF. AND Segments比赛链接 https://codeforces.com/contest/1327比赛记录 https://blog.csdn.net/cheng__yu_/article/detai原创 2020-05-16 02:47:19 · 246 阅读 · 0 评论 -
Codeforces Round #629 (Div. 3) Mar/26/2020 22:35UTC+8
Codeforces Round #629 Div. 3A. Divisibility Problem(水)B. K-th Beautiful StringC. Ternary XORD. CarouselF. Make k Equal比赛链接 https://codeforces.com/contest/1328比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197A. Divisibility Problem(水)思路:取原创 2020-05-14 22:28:35 · 352 阅读 · 0 评论 -
Codeforces Round #630 (Div. 2) Mar/31/2020 21:35UTC+8
Codeforces Round #630 Div. 2A. Exercising WalkB. Composite ColoringC. K-Complete WordD. Walk on Matrix(构造)比赛链接 https://codeforces.com/contest/1332比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197A. Exercising Walk思路:模拟过程,应该是在同一个方向上面走一步退一原创 2020-05-14 16:36:12 · 839 阅读 · 0 评论 -
codeforces比赛记录
CF比赛记录Codeforces Round #641 (Div. 2) May/12/2020 20:35UTC+8Codeforces Round #639 (Div. 2) May/06/2020 22:35UTC+8Codeforces Round #638 (Div. 2) May/01/2020 22:35UTC+8Educational Codeforces Round 86 (Rated for Div. 2) Apr/26/2020 22:35UTC+8Codeforces Ro原创 2020-05-13 22:28:57 · 417 阅读 · 0 评论 -
Codeforces Round #631 (Div. 2) Apr/03/2020 22:35UTC+8
Codeforces Round #631 Div. 2A. Dreamoon and Ranking Collection(补数)B. Dreamoon Likes Permutations(找排列)C. Dreamoon Likes Coloring(贪心)D. Dreamoon Likes Sequences(递推)E. Drazil Likes Heap比赛链接 https://codeforces.com/contest/1330比赛记录 https://blog.csdn.net/cheng原创 2020-05-13 22:22:53 · 225 阅读 · 0 评论 -
Codeforces Round #632 (Div. 2) Apr/08/2020 22:35UTC+8
Codeforces Round #632 Div. 2A. Little Artem(水)B. Kind AntonC. Eugene and an array(前缀和零集)D. Challenges in school №41(模拟)E. Road to 1600(构造)F. Kate and imperfection(思维)比赛链接 https://codeforces.com/contest/1333比赛记录 https://blog.csdn.net/cheng__yu_/article/de原创 2020-05-13 21:36:49 · 377 阅读 · 0 评论 -
Educational Codeforces Round 85 (Rated for Div. 2) Apr/10/2020 22:35UTC+8
Educational Codeforces Round 85 Rated for Div. 2A. Level StatisticsB. Middle Class(平均数)C. Circle of Monsters(枚举起点)D. Minimum Euler Cycle(模拟)E. Divisor Paths比赛链接 https://codeforces.com/contest/1334比赛记录 https://blog.csdn.net/cheng__yu_/article/details/1053原创 2020-05-13 21:31:44 · 279 阅读 · 0 评论 -
Codeforces Round #633 (Div. 2) Apr/12/2020 22:05UTC+8
Codeforces Round #633 Div. 2A. Filling Diamonds(递推)B. Sorted Adjacent Differences(绝对值)C. Powered Addition(二进制)D. Edge Weight Assignment(构造 + DFS)比赛链接 https://codeforces.com/contest/1339比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197A. Fi原创 2020-05-13 21:10:30 · 164 阅读 · 0 评论 -
Codeforces Round #634 (Div. 3) Apr/13/2020 22:35UTC+8
Codeforces Round #634 Div. 3A. Candies and Two Sisters(水)B. Construct the String(水)C. Two Teams ComposingD. Anti-Sudoku(思维)E2. Three Blocks Palindrome (hard version)(枚举)比赛链接 https://codeforces.com/contest/1335比赛记录 https://blog.csdn.net/cheng__yu_/article原创 2020-05-13 21:04:55 · 192 阅读 · 0 评论 -
Codeforces Round #635 (Div. 2) Apr/15/2020 22:35UTC+8
Codeforces Round #635 Div. 2A. Ichihime and Triangle(水)B. Kana and Dragon Quest game(水)C. Linova and Kingdom(BFS + DFS)D. Xenia and Colorful Gems(枚举 + 二分)E. Kaavi and Magic Spell(区间DP)比赛链接 https://codeforces.com/contest/1337比赛记录 https://blog.csdn.net/che原创 2020-05-13 20:49:31 · 379 阅读 · 0 评论 -
Codeforces Round #636 (Div. 3) Apr/21/2020 22:35UTC+8
Codeforces Round #636 Div. 3A. Candies(水)B. Balanced Array(超级水)C. Alternating Subsequence(实现)D. Constant Palindrome Sum(差分数组)E. Weights Distributing(BFS)比赛链接 https://codeforces.com/contest/1343比赛记录 https://blog.csdn.net/cheng__yu_/article/details/1053951原创 2020-05-13 20:41:03 · 335 阅读 · 0 评论