
Codeforces
文章平均质量分 61
ssqsssq
这个作者很懒,什么都没留下…
展开
-
Educational Codeforces Round 103 (Rated for Div. 2)题解
写在前面:这次打出4道,其中C题是赛后补题,我把它想的太难了,一直想用dfs或者图论解决,结果最后看别人的AC代码发现只要观察规律即可,还有B题最后因为没有lld输出导致错误4发,很不应该。A. K-divisible Sum思路:简单的签到题,n个数相加能够整除k,求n个数中最大的数最小时的值,其实就是求一下n个数相加能整除k时的和,然后平均给n个数,求出每个数的值,如果还有余数就+1。#include <bits/stdc++.h> using namespace std;.原创 2021-01-30 01:07:59 · 482 阅读 · 0 评论 -
Codeforces Round #636 (Div. 3)题解
A. Candiestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently Vova found n candy wrappers. He remembers that he bought x candies during t...原创 2020-04-22 08:08:58 · 1225 阅读 · 0 评论 -
Codeforces Round #634 (Div. 3)题解
写在前面: 还是只有四道。。。想出了后两道解法但来不及了,主要是第四道耗时太久。下次碰到类似的要找准方法,直接写。A. Candies and Two Sisterstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are...原创 2020-04-14 08:24:03 · 940 阅读 · 0 评论 -
Codeforces Round #633 (Div. 2)题解
思路: 因为怕暴力算法TLE,然后上网搜了简便的,没想到居然简便算法有误。。。暴力算法反而过了。。。A. Filling Diamondstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have integer n. Cal...原创 2020-04-13 09:01:25 · 703 阅读 · 0 评论 -
Educational Codeforces Round 85 (Rated for Div. 2)题解
写在前面: 没想到思路全对的情况下居然因为一个初始化错误卡了一个多小时没出来。。。A. Level Statisticstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp has recently created a...原创 2020-04-12 10:51:35 · 489 阅读 · 0 评论 -
Codeforces Round #631 (Div. 2) - Thanks, Denis aramis Shitov!题解
写在前面: 只过了2题,希望以后能真真实实过多一点!!!A. Dreamoon and Ranking Collectiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDreamoon is a big fan of the C...原创 2020-04-04 16:16:16 · 801 阅读 · 1 评论 -
Codeforces Round #629 (Div. 3)题解
写在前面: 只有三道,第四道思路有了没出来。A. Divisibility Problemtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two positive integers a and b. In...原创 2020-03-27 10:43:07 · 705 阅读 · 0 评论 -
Codeforces Round #624 (Div. 3)题解
写在前面: 很久没有好好打,松懈了,只打出三道,而且有错误,第四道是经典枚举,没想到是很不应该的。A. Add Odd or Subtract Eventime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given t...原创 2020-02-25 00:55:48 · 2485 阅读 · 7 评论 -
Codeforces Round #618 (Div. 2)(题解)
A. Non-zerotime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGuy-Manuel and Thomas have an array a of n integers [a1,a2,…,an]. In one step they ...原创 2020-02-10 00:46:40 · 819 阅读 · 0 评论 -
Codeforces Round #617 (Div. 3)(题解)
写在前面: 啊啊啊!又是思路对了写不出来。。。掉分场。。。A. Array with Odd Sumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array a consisting of n i...原创 2020-02-05 22:45:16 · 520 阅读 · 0 评论 -
Codeforces Round #616 (Div. 2)(题解)
写在前面: 疫情严重,希望武汉与中国一起加油。这次就做出两题,第三题没读完,实在是比较慢。A. Even But Not Eventime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet’s define a number ebne...原创 2020-02-03 11:02:22 · 3823 阅读 · 0 评论 -
Codeforces Round #615 (Div. 3)(题解)
写在前面: 可惜了,如果做出第四道,应该可以直接回青名的,这次前三道的手感都不错,可惜第四道没做出。祝大家新年快乐!!!A. Collecting Coinstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp ha...原创 2020-01-23 22:28:39 · 2382 阅读 · 2 评论 -
Codeforces Round #512 (Div. 2)题解
A. In Search of an Easy Problemtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhen preparing a tournament, Codeforces coordinators try treir ...原创 2020-01-21 15:47:04 · 256 阅读 · 0 评论 -
Codeforces Round #491 (Div. 2)题解
A. If at first you don’t succeed…time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputEach student eagerly awaits the day he would pass the exams s...原创 2020-01-21 11:17:52 · 279 阅读 · 0 评论 -
Codeforces Round #613 (Div. 2)题解
写在前面: 第一次写cf题解,这场难度不大,但只打出两道,难受,还需要认真的学习更多的知识。A. Mezo Playing Zomatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday, Mezo is playing a g...原创 2020-01-11 12:32:12 · 759 阅读 · 0 评论