![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
文章平均质量分 78
codeforces
Evil_boy__
这个作者很懒,什么都没留下…
展开
-
Codeforces Round 868 (Div. 2)A.B.C
一个数组如果有两个1,那么特点数为1;-1也是如此,那么我们可以枚举1的数量,如果1提供的特点数和-1的提供特点数之和为k,那么就是可以构造,同时我们也知道了1和-1的数量。有一个数组a,里面只存在1和-1,现在可以选择任意两个位置,但是不能重合,如果两个位置的数乘积为1,那么特点数累加,题目给定一个n和k,要求构造一个长度为n的数组,使特点数为k。如果一个数有两个相同的质因子,那么这个数就是强合性的,如4,9.如果一个数只有两个不同的质因子,那么就不是,如6,如果有3个质因子,那么就会是,如30.原创 2023-05-05 10:59:38 · 551 阅读 · 2 评论 -
Codeforces Round #835 (Div. 4)A.B.C.D.E.F
Codeforces Round #835 (Div. 4)A.B.C.D.E.F原创 2022-12-01 21:50:22 · 712 阅读 · 0 评论 -
Codeforces Round #836 (Div. 2) A.B.C.D
Codeforces Round #836 (Div. 2) A.B.C.D原创 2022-11-29 18:43:37 · 730 阅读 · 0 评论 -
Codeforces Round #829 (Div. 2)A.B.C1.D
Codeforces Round #829 (Div. 2)A.B.C1.D原创 2022-10-30 16:33:21 · 391 阅读 · 0 评论 -
Codeforces Round #830 (Div. 2) A.B
Codeforces Round #830 (Div. 2) A.B原创 2022-10-28 21:18:27 · 364 阅读 · 0 评论 -
Codeforces Round #814 (Div. 2) A.B.C
Codeforces Round #814 (Div. 2) A.B.C原创 2022-09-20 14:39:46 · 199 阅读 · 0 评论 -
Codeforces Round #813 (Div. 2)A.B.C
Codeforces Round #813 (Div. 2)A.B.C原创 2022-09-16 16:30:01 · 271 阅读 · 0 评论 -
Codeforces Round #812 (Div. 2)A.B.C.D
Codeforces Round #812 (Div. 2)A.B.C.D原创 2022-09-15 16:00:22 · 259 阅读 · 0 评论 -
Educational Codeforces Round 133 (Rated for Div. 2)A.B
Educational Codeforces Round 133 (Rated for Div. 2)A.B原创 2022-09-14 14:39:00 · 177 阅读 · 0 评论 -
Codeforces Round #811 (Div. 3)A.B.C.E
Codeforces Round #811 (Div. 3)A.B.C.E原创 2022-09-09 17:53:44 · 318 阅读 · 0 评论 -
CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes) A.B.C
CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes) A.B.C原创 2022-09-09 16:39:52 · 352 阅读 · 0 评论 -
Codeforces Round #810 (Div. 2) A.B.C
Codeforces Round #810 (Div. 2) A.B.C原创 2022-09-09 14:22:50 · 271 阅读 · 0 评论 -
Educational Codeforces Round 132 (Rated for Div. 2) A.B.D
Educational Codeforces Round 132 (Rated for Div. 2) A.B.D原创 2022-09-08 15:34:46 · 366 阅读 · 0 评论 -
Codeforces Round #794 (Div. 2)(A.B.C)
Codeforces Round #794 (Div. 2)(A.B.C)原创 2022-07-19 19:53:36 · 276 阅读 · 0 评论 -
Codeforces Round #808 (Div. 2)(A,B,C)
Codeforces Round #808 (Div. 2)(A,B,C)原创 2022-07-17 16:03:59 · 236 阅读 · 0 评论 -
Codeforces Round #807 (Div. 2)(A.B.C)
Codeforces Round #807 (Div. 2)(A.B.C)原创 2022-07-16 20:32:10 · 124 阅读 · 0 评论 -
Codeforces Round #806 (Div. 4)(A.B.C.D.E.F)
Codeforces Round #806 (Div. 4)(A.B.C.D.E.F)原创 2022-07-14 21:43:50 · 327 阅读 · 0 评论 -
Codeforces Round #805 (Div. 3)(A,B,C,D)
Codeforces Round #805 (Div. 3)(A,B,C,D)原创 2022-07-13 19:35:10 · 183 阅读 · 0 评论 -
Codeforces Round #786 (Div. 3) ABCD
目录A. Number TransformationB. DictionaryC. Infinite ReplacementD. A-B-C SortA. Number Transformation题目链接:Problem - A - Codeforces题面:题意:t组样例,每组一个x,y,可以选择一个a使x变成a * x,问需要几步使x 变成b,如果不行输出0 0思路:如果y可以除尽x,那么就是1 y / x,否则就是 0 0#include<.原创 2022-05-03 18:32:34 · 373 阅读 · 0 评论 -
Educational Codeforces Round 127 (Rated for Div. 2) ABC
A. String Building题目链接:原创 2022-05-05 21:34:09 · 381 阅读 · 0 评论 -
Codeforces Round #787 (Div. 3) ABCDE
A. Food for Animals:题目链接:Problem - A - Codeforces题面:题意:有a包狗粮,b包猫粮,c包猫狗都吃粮,有x只狗,y只猫,问能否给每只动物都分配一包粮思路:如果x-a + y-b <= c就输出YES,否则NO代码:#include<bits/stdc++.h>using namespace std;#define endl "\n"#define ll long longint main(){.原创 2022-05-09 20:14:51 · 244 阅读 · 0 评论 -
Codeforces Round #785 (Div. 2) ABC
A. Subtle Substring Subtraction题目链接:https://codeforces.com/contest/1673/problem/A题面:原创 2022-05-05 17:11:52 · 406 阅读 · 0 评论 -
B. Combinatorics Homework cf 1574B
You are given four integer valuesaa,bb,ccandmm.Check if there exists a string that contains:aaletters 'A'; bbletters 'B'; ccletters 'C'; no other letters; exactlymmpairs of adjacent equal letters (exactlymmsuch positionsiithat theii-...原创 2021-09-22 19:39:11 · 283 阅读 · 4 评论