cf
文章平均质量分 67
.0-0.
stay hungry,stay foolish
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Round #756 (Div. 3)
contents:A. Make EvenB. Team Composition: Programmers and MathematiciansC. Polycarp Recovers the PermutationD. Weights Assignment For Tree EdgesE1. Escape The Maze (easy version)A. Make Even#include <bits/stdc++.h>using namespace std;#define ll l原创 2021-11-26 02:03:23 · 196 阅读 · 0 评论 -
Educational Codeforces Round 117 (Rated for Div. 2) ABCD (更新中)
contents:A. DistanceACB. Special PermutationACC. Chat BanD. X-Magic Pair思路ACE. MessagesACA. DistanceLet’s denote the Manhattan distance between two points p1 (with coordinates (x1,y1)) and p2 (with coordinates (x2,y2)) as d(p1,p2)=|x1−x2|+|y1−y2|. For ex原创 2021-11-23 06:45:42 · 532 阅读 · 0 评论 -
C. Neko does Maths
contents:题题意思路AC代码题Neko loves divisors. During the latest number theory lesson, he got an interesting exercise from his math teacher.Neko has two integers a and b. His goal is to find a non-negative integer k such that the least common multiple of a+k a原创 2021-11-12 17:43:40 · 531 阅读 · 0 评论 -
yp野题 思维
contents:C. Marina and VasyaACA. Guest From the PastACC. Marina and VasyaMarina loves strings of the same length and Vasya loves when there is a third string, different from them in exactly t characters. Help Vasya find at least one such string.More for原创 2021-11-08 02:36:21 · 222 阅读 · 0 评论 -
Codeforces Round #753 (Div. 3)ABCDE&FGH
contents:A. Linear Keyboard思路ypACdalaoACB. Odd Grasshopper思路ypACdalaoACC. Minimum Extraction思路ypACdalaoACD. Blue-Red Permutation思路ypACdalaoACE. Robot on the Board 1思路ypAC大佬ACF. Robot on the Board 2dalaoACG. Banquet Preparations 1dalaoACH. Banquet Preparati原创 2021-11-03 04:08:09 · 765 阅读 · 6 评论 -
Codeforces Round #752 (Div. 2)
contents:A. EraACB. XOR Specia-LIS-t思路ACC. Di-visible Confusion思路ACD. Moderate Modular Mode思路ACA. EraShohag has an integer sequence a1,a2,…,an. He can perform the following operation any number of times (possibly, zero):Select any positive integer k (it原创 2021-10-31 16:26:16 · 390 阅读 · 0 评论 -
Educational Codeforces Round 116 (Rated for Div. 2)
contents:A. AB Balance题解ACB. Update Files模拟ACC. Banknotes思路ACA. AB BalanceYou are given a string s of length n consisting of characters a and/or b.Let AB(s) be the number of occurrences of string ab in s as a substring. Analogically, BA(s) is the number原创 2021-10-30 02:10:31 · 334 阅读 · 0 评论 -
codeforces 750 (Div2)ABCD
contents:A. Luntik and Concerts题意思路ACB. Luntik and Subsequences思路ACC. Grandma Capa Knits a Scarf思路ACD. Vupsen, Pupsen and 0思路ACA. Luntik and ConcertsLuntik has decided to try singing. He has a one-minute songs, b two-minute songs and c three-minute songs原创 2021-10-24 21:42:59 · 590 阅读 · 2 评论 -
codeforces 749(Div1+2)
contents:A. Windblume Ode题意思路meACB. Omkar and Heavenly Tree题意思路ACC. Omkar and DeterminationD. Omkar and the Meaning of Life这是特别有意思的题A. Windblume Ode题意A bow adorned with nameless flowers that bears the earnest hopes of an equally nameless person.You ha原创 2021-10-20 21:03:38 · 265 阅读 · 0 评论 -
codeforces 1599 C. Bubble Strike
题意Little Johnny Bubbles enjoys spending hours in front of his computer playing video games. His favorite game is Bubble Strike, fast-paced bubble shooting online game for two players.Each game is set in one of the N maps, each having different terrain c原创 2021-10-20 09:41:59 · 291 阅读 · 2 评论 -
codeforces 1600E. Array Game (博弈)
contents:题意思路AC题意Alice and Bob are playing a game. They are given an array A of length N. The array consists of integers. They are building a sequence together. In the beginning, the sequence is empty. In one turn a player can remove a number from the le原创 2021-10-19 19:39:57 · 874 阅读 · 1 评论 -
Codeforces Educational Round 114 div2 (ABC)(D)
contents:A. Regular Bracket Sequences题意思路AC代码B. Combinatorics Homework题意思路AC代码C. Slay the Dragon题意思路AC代码A. Regular Bracket Sequences题意构造n的n个合法括号序列思路其中一种思路就是第几个括号就套几个括号比如n=5它的第三个序列可以是((()))()()不够的长度进行()填充就好了AC代码#include <bits/stdc++.h>us原创 2021-09-21 11:06:05 · 179 阅读 · 0 评论 -
codeforces 1569 D. Inconvenient Pairs
contents:题意思路AC代码题意曼哈顿距离知道不?先来一张图看到这些小点点没上面的数字代表出现的顺序然后横竖的线代表路点点代表人人与人之间如果走的路线不是曼哈顿距离那就是一对不方便的人,如(3,4)求不方便人的对数思路我们会发现,路都是直线的如果在同一条路上(6,7,8,9),(2,3),他们是方便的一个人到达另一个地方需要拐两个弯的如果拐弯不往“回”跑,那么走的每一段路都不白走需要拐两次弯,且存在白跑的就是两条路之间两个人仔细看看是不是这样(3,4)(4,5),原创 2021-09-13 19:34:27 · 465 阅读 · 0 评论 -
codeforces 742
contents:B. MEXor Mixup题意思路AC代码B. MEXor Mixup题意一个数组满足一个条件最小的mxa=a数组XOR值为b思路AC代码#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 3e5 + 5;int T;int v[N];int main(){ for (int i = 1; i < N; ++i)原创 2021-09-06 20:52:07 · 383 阅读 · 0 评论
分享