codeforces
文章平均质量分 63
codeforces题解
彡倾灬染|
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #727 (Div. 2) 题解
Div. 2 727官方题解A - Contest StartB - Love SongC - Stable GroupsD - PriceFixedF - Strange Array (补)官方题解传送门A - Contest Start题目链接答案#include <iostream>#include <algorithm>#include<bits/stdc++.h>#define ll long long#define mem(a,b) mem原创 2021-06-22 17:22:23 · 158 阅读 · 4 评论 -
SDUT 2021 Spring Team Contest--- 24(Gym 103145) 题解
Gym 103145E - Easy Math ProblemI - TakeawayJ - TransformK - CityM - Master of ShuangpinE - Easy Math Problem题目链接答案#include <iostream>#include <algorithm>#include<bits/stdc++.h>#define ll long long#define mem(a,b) memset(a,b,sizeof原创 2021-06-19 17:40:05 · 1116 阅读 · 2 评论 -
Codeforces Round #726 (Div. 2) 题解
726官方题解A - Arithmetic ArrayB - Bad BoyC - Challenging CliffsD - Deleting DivisorsE1 - Erase and Extend (Easy Version)E2 - Erase and Extend (Hard Version) (补)F - Figure Fixing(补)官方题解传送门A - Arithmetic Array题目链接答案#include <iostream>#include <a原创 2021-06-19 10:48:30 · 436 阅读 · 0 评论 -
Codeforces Round #725 (Div. 3) 题解
725 Div. 3A - Stone GameB - Friends and CandiesC - Number of PairsD - Another Problem About Dividing NumbersF - Interesting FunctionA - Stone Game题目链接答案#include <iostream>#include <algorithm>#include<bits/stdc++.h>#define ll long l原创 2021-06-11 19:39:48 · 327 阅读 · 1 评论 -
Educational Codeforces Round 110 (Rated for Div. 2) 题解
Round 110A - Fair PlayoffB - Array ReoderingC - Unstable StringA - Fair Playoff题目链接答案#include <iostream>#include <algorithm>#include<bits/stdc++.h>#define ll long long#define mem(a,b) memset(a,b,sizeof a)#define ull unsigned long原创 2021-06-09 21:32:35 · 268 阅读 · 0 评论 -
SDUT 2021 Spring Individual Contest - L (Gym - 101873)题解
Gym - 101873题面链接D - Pants On FireG - Water TestingI - UberwatchC - Joyride(补)题面链接传送门D - Pants On Fire题目链接答案#include <iostream>#include <algorithm>#include<bits/stdc++.h>#define ll long long#define mem(a,b) memset(a,b,sizeof a)#原创 2021-06-02 10:05:35 · 396 阅读 · 0 评论 -
SDUT 2021 Spring Team Contest--- 20 (Gym 103107)题解
Gym 103107DD - Doin' TimeF - FunctionH - Hack DSU!J - JOJO's FactoryK - Keep EatingD - Doin’ Time题目链接答案#include <iostream>#include <algorithm>#include<bits/stdc++.h>#define ll long long#define mem(a,b) memset(a,b,sizeof a)#define原创 2021-05-29 17:33:27 · 1225 阅读 · 1 评论 -
Codeforces Round #723 (Div. 2) 题解
#723A - Mean InequalityB - I Hate 1111C1 - Potions (Easy Version)C2 - Potions (Hard Version)晚上再补题吧A - Mean Inequality题目链接答案#include <iostream>#include <algorithm>#include<bits/stdc++.h>#define ll long long#define mem(a,b) memset(原创 2021-05-29 10:15:12 · 454 阅读 · 0 评论 -
Educational Codeforces Round 109 (Rated for Div. 2) 题解
题目A - Potion-makingB - Permutation SortD - ArmchairsA - Potion-making题目链接答案#include <iostream>#include <algorithm>#include<bits/stdc++.h>#define ll long long#define mem(a,b) memset(a,b,sizeof a)#define ull unsigned long long#def原创 2021-05-18 15:29:07 · 126 阅读 · 1 评论 -
SDUT 2021 Spring Team Contest--- 16(Gym 103081) 题解
Gym 103081A - GratitudeC - Safe DistanceD - JoggingE - CakesK - Unique ActivitiesA - Gratitude题目链接答案:#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <algorithm>#include <deque>原创 2021-05-15 21:01:16 · 1111 阅读 · 2 评论 -
Codeforces Round #719 (Div. 3) 题解(详解)
@TOCA - Do Not Be Distracted!题目链接答案#include <iostream>#include<bits/stdc++.h>#define ll long long#define mem(a,b) memset(a,b,sizeof a)#define ull unsigned long long#define INF 0x3f3f3f3f3f3f3f3f#define rep(i,a,b) for(auto i=a;i<=b;原创 2021-05-06 00:39:45 · 250 阅读 · 8 评论 -
Educational Codeforces Round 108 (Rated for Div. 2)
Educational Codeforces Round 108A - Red and Blue BeansB - The Cake Is a LieC - Berland RegionalD - Maximum Sum of ProductsA - Red and Blue Beans题目链接答案#include <iostream>#include<bits/stdc++.h>#define ll long long#define mem(a,b) memset(a原创 2021-04-30 10:00:10 · 216 阅读 · 0 评论 -
Contest 2050 and Codeforces Round #718 (Div. 1 + Div. 2)
Round #718 A. Sum of 2050B - Morning JoggingC - Fillomino 2A. Sum of 2050题目链接答案#include <iostream>#include<bits/stdc++.h>#define ll long long#define mem(a,b) memset(a,b,sizeof a)#define ull unsigned long long#define INF 0x3f3f3f3f3f3f3原创 2021-04-29 19:53:03 · 125 阅读 · 0 评论 -
SDUT 2021 Spring Individual Contest - H(Gym - 103061)
Gym - 103061B - lazing RiffI - cy ResurrectionJ - uvenile GalantN - anikore昨天没打还没补完(待补ing)B - lazing Riff题目链接答案#include <iostream>#include<bits/stdc++.h>#define ll long long#define mem(a,b) memset(a,b,sizeof a)#define ull unsigned lon原创 2021-04-28 18:00:13 · 624 阅读 · 0 评论 -
SDUT 2021 Spring Team Contest--- 10(Gym 103055)
Gym 103055A - League of LegendsC - CubeJ - Grammy and JewelryL - String FreshmanM - Game TheoryA - League of Legends题目链接答案#include <iostream>#include<bits/stdc++.h>#define ll long long#define ull unsigned long long#define INF 0x3f3f3f3f原创 2021-04-28 17:56:12 · 441 阅读 · 0 评论 -
Codeforces Round #713 (Div. 3) 题解
CodeforcesA. Spy Detected!B. Almost RectangleC - A-B PalindromeD - Corrupted ArrayE - Permutation by SumA. Spy Detected!题目链接答案#include<bits/stdc++.h>#define ll long longconst int N = 1e5 + 10;using namespace std;int dp[N];int main(){ i原创 2021-04-14 21:38:28 · 165 阅读 · 0 评论 -
Educational Codeforces Round 107 (Rated for Div. 2) 题解
CodeforcesA - Review SiteB - GCD LengthC - Yet Another Card DeckD - Yet Another Card DeckA - Review Site题目链接答案#include <iostream>#include<bits/stdc++.h>#define ll long longconst int N = 1e5 + 10;using namespace std;int main(){原创 2021-04-13 00:31:09 · 346 阅读 · 2 评论 -
SDUT 2021 Spring Individual Contest - F(Gym 101473)
Gym 101473A - Zero or OneE - Dangerous DiveF - TrianglesI - PatchesA - Zero or One题目链接答案#include <iostream>#include<bits/stdc++.h>#define ll long long#define ull unsigned long long#define INF 0x3f3f3f3f#define inf 0x3f3f3f3f3f3f3f3f#d原创 2021-03-30 20:07:35 · 157 阅读 · 0 评论 -
SDUT 2021 Spring Team Contest--- 7 (Gym 102471)
Gym 102471A - CityE - FlowM - ValueA - City题目链接答案#include <iostream>#include<bits/stdc++.h>#define ll long long#define ull unsigned long long#define INF 0x3f3f3f3f#define inf 0x3f3f3f3f3f3f3f3f#define mem(a,b) memset(a,b,sizeof(a))#d原创 2021-03-28 17:14:17 · 251 阅读 · 0 评论 -
SDUT 2021 Spring Team Contest--- 6(Gym 100783)
Gym 100783A - GREAT+SWERC=PORTOB - Flowery TrailsD - Book ClubA - GREAT+SWERC=PORTO题目链接答案#include <iostream>#include<bits/stdc++.h>#define ll long long#define ull unsigned long long#define INF 0x3f3f3f3f#define inf 0x3f3f3f3f3f3f3f3f#原创 2021-03-21 15:29:42 · 253 阅读 · 0 评论 -
SDUT 2021 Spring Team Contest--- 5(Gym 102984)
Gym 102984E - Observer GameG - Solo Tree GameE - Observer Game题目链接答案:#include <iostream>#include<bits/stdc++.h>#define ll long long#define ull unsigned long long#define INF 0x3f3f3f3f#define inf 0x3f3f3f3f3f3f3f3f#define mem(a,b) mems原创 2021-03-21 15:27:06 · 280 阅读 · 0 评论 -
SDUT 2021 Spring Individual Contest - C(Gym 100814)
Gym 100814A - Arcade GameB - Unlucky TeacherF - GeometryI - SalemA - Arcade Game题目链接答案:#include <iostream>#include<bits/stdc++.h>#define ll long long#define ull unsigned long long#define INF 0x3f3f3f3f#define inf 0x3f3f3f3f3f3f3f3f#de原创 2021-03-16 20:16:52 · 282 阅读 · 0 评论 -
SDUT 2021 Spring Team Contest--- 3(Gym 102896)
Gym 102896A - Almost Balanced TreeC - Color the TreeE - Easy MeasurementsK - Kate's 2021 CelebrationM - MiserA - Almost Balanced Tree题目链接答案:#include <iostream>#include<bits/stdc++.h>#define ll long long#define INF 0x3f3f3f3fconst int N原创 2021-03-13 17:47:22 · 531 阅读 · 0 评论 -
SDUT 2021 Spring Individual Contest - B(Gym 101063)
Gym 101063F - BandejaoJ - The KeysK - Dire, Dire DocksF - Bandejao题目链接答案:#include <iostream>#include<bits/stdc++.h>#define ll long long#define INF 0x3f3f3f3fconst int N = 1e5 + 10;using namespace std;int main(){ int n,k; cin原创 2021-03-09 21:00:59 · 157 阅读 · 0 评论 -
SDUT 2021 Winter Individual Contest - N(Gym - 100971)
Gym - 100971B - DerangementC - TrianglesD - Laying CablesF - Two PointsG - RepairK - PalindromizationL - Chess MatchB - Derangement题目链接答案:#include <iostream>#include<bits/stdc++.h>#define ll long long#define ull unsigned long long#defin原创 2021-02-23 23:33:05 · 129 阅读 · 1 评论 -
SDUT 2021 Winter Team Contest - 8(Gym 102920)
Gym 102920B - Commemorative DiceC - Dessert CaféE - Imprecise ComputerG - Mobile RobotB - Commemorative Dice题目链接答案:#include <bits/stdc++.h>using namespace std;#define ll long long#define inf 0x3f3f3f3fint a[101],b[101];int main(){ for(int原创 2021-02-19 09:12:24 · 322 阅读 · 1 评论 -
SDUT 2021 Winter Team Contest - 7(Gym 102861)
Gym 102861A - Sticker AlbumB - BattleshipF - FastmintonG - Game Show!L - LavasparA - Sticker Album题目链接答案:#include <iostream>#include<bits/stdc++.h>#define ll long long#define ull unsigned long long#define INF 0x3f3f3f3f#define inf 0x3f原创 2021-02-11 00:01:59 · 234 阅读 · 0 评论 -
SDUT 2021 Winter Individual Contest - K(Gym-102448)
Gym-102448A - Accept or RejectB - Beza's HangoverD - Drinking to turn redE - Everybody loves acaiF - Finally, christmas!G - Gorggeous Peter's Great FriendK - Kongey DonkH - Hellcife is on fire(补)I - Ivan and the swimming pool(补)A - Accept or Reject题目链接答原创 2021-02-09 23:02:59 · 277 阅读 · 0 评论 -
SDUT 2021 Winter Individual Contest - J(Gym-101879)
Gym-101879B - Aesthetics in poetryD - Maximizing AdvertisingE - Group workG - Running a penitentiaryI - A story about teaJ - Meme WarsB - Aesthetics in poetry题目链接答案#include <iostream>#include<bits/stdc++.h>#define ll long long#define ull原创 2021-02-07 23:16:32 · 317 阅读 · 0 评论 -
SDUT 2021 Winter Team Contest - 4(Gym 102028)
Gym 102028A - Xu Xiake in Henan ProvinceD - Keiichi Tsuchiya the Drift KingE - Resistors in ParallelF - HoneycombI - DistanceA - Xu Xiake in Henan Province题目链接题意t组查询,每组给出4个数,代表去过4个地方,如果4个数都是0,输出Typically Otaku,如果有3个0,输出Eye-opener,如果有2个0,输出Young Travell原创 2021-01-31 00:35:10 · 155 阅读 · 0 评论 -
SDUT 2021 Winter Team Contest - 3(Gym 101669)
Gym 101669A - ConcertsG - RobotsJ - Cunning FriendsK - Escape Room题目链接A - Concerts题意:有 26 种演唱会,John 希望按照某个顺序看某些类型的演唱会,但是看完某种类型的演唱会后需要至少休息一定的天数才能继续看演唱会,问有多少种看演唱会的方案思路:dp求解答案:#include <iostream>#include <cstring>#include <cstdio>原创 2021-01-28 23:55:12 · 207 阅读 · 0 评论 -
SDUT 2021 Winter Individual Contest - F(Gym 102433)
Gym 102433B - Perfect FlushC - Coloring ContentionD - Dividing By TwoE - Rainbow StringsI - Error CorrectionM - Maze Connect总题目链接B - Perfect Flush题目链接答案:#include <iostream>#include<bits/stdc++.h>#define ll long long#define INF 0x3f3f3f3原创 2021-01-27 08:34:25 · 330 阅读 · 0 评论 -
codeforces Gym - 101341
Gym - 101341B - Pursuing the Happiness题意思路答案C - Urn with Balls题意思路答案D - Jumps题意思路答案G - I love Codeforces题意思路答案法一:法二H - Perfect Ban题意思路答案:M - Last Man Standing题意思路答案B - Pursuing the Happiness题目链接题意给定一串字符串,问能否交换两个位置的字符使这个字符串中找不到"happiness"思路stirng.find原创 2021-01-19 23:22:27 · 849 阅读 · 0 评论 -
codeforces Gym 102465
Gym 102465A - City of Lights题目答案:B - Blurred Pictures题目答案:D - Monument Tour题目答案:E - Rounding题目答案:A - City of Lights题目Paris has been called “ville lumière” (city of lights) since the 17th century. It earned this nickname in part because of the many city原创 2021-01-18 16:57:58 · 713 阅读 · 0 评论