codedorces
sdau_fangshifeng
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #575 (Div. 3) E - Connected Component on a Chessboard
题目链接:http://codeforces.com/problemset/problem/223/CE. Connected Component on a ChessboardYou are given two integersbbandww. You have a chessboard of size109×109109×109with the top left cel...原创 2019-07-25 14:56:44 · 337 阅读 · 0 评论 -
Codeforces Round #152 (Div. 2) C. Robo-Footballer (二维几何)
题目链接:http://codeforces.com/problemset/problem/248/CC. Robo-FootballerIt's a beautiful April day and Wallace is playing football with his friends. But his friends do not know that Wallace actua...原创 2019-08-10 17:10:54 · 186 阅读 · 0 评论 -
Codeforces Round #145 (Div. 1) D. Merging Two Decks
题目链接:http://codeforces.com/problemset/problem/240/DD. Merging Two Decksinput input.txtoutput output.txtThere are two decks of cards lying on the table in front of you, some cards in these d...原创 2019-08-01 11:03:26 · 141 阅读 · 0 评论 -
Codeforces Round #145 (Div. 1) C. Practice
题目链接:http://codeforces.com/problemset/problem/240/CC. Practiceinput input.txtoutput output.txtLittle time is left before Berland annual football championship. Therefore the coach of team "Lo...原创 2019-08-01 09:25:57 · 176 阅读 · 0 评论 -
CodeForces 217 B Blackboard Fibonacci +暴力
题目链接:http://codeforces.com/contest/217/problem/BB. Blackboard Fibonaccitime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFibo...原创 2019-07-23 10:31:21 · 182 阅读 · 0 评论 -
Codeforces Round #136 (Div. 1) C. Little Elephant and Shifts
题目链接:http://codeforces.com/problemset/problem/220/CC. Little Elephant and ShiftsThe Little Elephant has two permutationsaandbof lengthn, consisting of numbers from 1 ton, inclusive. Let...原创 2019-07-27 08:36:53 · 207 阅读 · 0 评论 -
Codeforces Round #140 (Div. 1) B. Naughty Stone Piles
题目链接:http://codeforces.com/problemset/problem/226/BB. Naughty Stone PilesThere arenpiles of stones of sizesa1, a2, ..., anlying on the table in front of you.During one move you can take one...原创 2019-07-26 16:43:11 · 148 阅读 · 0 评论 -
Codeforces Round #140 (Div. 1) D. The table 无限暴力
题目链接:http://codeforces.com/problemset/problem/226/DD. The tableHarry Potter has a difficult homework. Given a rectangular table, consisting ofn × mcells. Each cell of the table contains the in...原创 2019-07-26 10:05:02 · 201 阅读 · 0 评论 -
Codeforces Round #145 (Div. 2) D. Cinema
题目链接:http://codeforces.com/problemset/problem/234/DD. Cinemainput input.txtoutput output.txtOverall there aremactors in Berland. Each actor has a personal identifier — an integer from1to...原创 2019-07-31 09:52:33 · 144 阅读 · 0 评论 -
Codeforces Round #145 (Div. 2) C. Weather
题目链接:http://codeforces.com/problemset/problem/234/CC. Weatherinput input.txtoutput output.txtScientists say a lot about the problems of global warming and cooling of the Earth. Indeed, s...原创 2019-07-31 09:34:30 · 121 阅读 · 0 评论 -
Codeforces Round #138 (Div. 1)B. Two Strings
题目链接:codeforces.com/problemset/problem/223/BB. Two StringsA subsequence of length |x| of string s = s1s2... s|s| (where |s| is the length of string s) is a string x = sk1sk2... sk|x| (1 ≤ k1 <...原创 2019-07-25 21:02:42 · 209 阅读 · 0 评论 -
Codeforces Round #138 (Div. 1) A. Bracket Sequence
题目链接:http://codeforces.com/problemset/problem/223/AA. Bracket SequenceAbracket sequenceis a string, containing only characters "(", ")", "[" and "]".Acorrect bracket sequenceis a bracket ...原创 2019-07-25 20:19:36 · 136 阅读 · 0 评论 -
Codeforces Round #138 (Div. 1)C. Partial Sums
C. Partial Sumstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've got an arraya, consisting ofnintegers. The array eleme...原创 2019-07-25 18:51:07 · 143 阅读 · 0 评论 -
Codeforces Round #140 (Div. 1) C. Anniversary (两个定理的应用(数论+矩阵快速幂)
题目链接:http://codeforces.com/problemset/problem/226/CC. AnniversaryThere are less than 60 years left till the 900-th birthday anniversary of a famous Italian mathematician Leonardo Fibonacci. O...原创 2019-07-30 19:00:55 · 156 阅读 · 0 评论 -
Codeforces Round #575 (Div. 3)D. RGB Substring (hard version)
题目链接:http://codeforces.com/contest/1196/problem/D2D2. RGB Substring (hard version)The only difference between easy and hard versions is the size of the input.You are given a stringssconsist...原创 2019-07-25 15:30:02 · 128 阅读 · 0 评论 -
暴力求规律+高斯消元找系数+小数转分数+逆元 解决规律题
例题:2018icpc南京现场赛-G Pyramid题目链接:http://codeforces.com/gym/101981/attachments或者:https://nanti.jisuanke.com/t/A2144暴力找规律#include<algorithm>#include<cstdio>#include<cstring>...原创 2019-08-20 11:55:33 · 340 阅读 · 2 评论