![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
Gee_Zer
这个作者很懒,什么都没留下…
展开
-
[CodeForces-1081B Farewell Party
Chouti and his classmates are going to the university soon. To say goodbye to each other, the class has planned a big farewell party in which classmates, teachers and parents sang and danced.Chouti r...原创 2019-04-10 11:28:38 · 375 阅读 · 0 评论 -
CF1017 C. The Phone Number
C. The Phone Numbertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMrs. Smith is trying to contact her husband, John Smith, but she forgot the...原创 2019-05-05 11:23:00 · 247 阅读 · 0 评论 -
CF1102D Balanced Ternary String(构造)
D. Balanced Ternary Stringtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a string s consisting of exactly n characters, and ea...原创 2019-04-23 15:18:51 · 274 阅读 · 0 评论 -
I - Minimize the error CodeForces - 960B (贪心)
B. Minimize the errortime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two arrays A and B, each of size n. The error, E, between t...原创 2019-04-18 10:35:16 · 133 阅读 · 0 评论 -
CF1070H. BerOS File Suggestion
H. BerOS File Suggestiontime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp is working on a new operating system called BerOS. He asks y...原创 2019-04-26 11:00:02 · 237 阅读 · 0 评论 -
CF 1060C. Maximum Subrectangle
C. Maximum Subrectangletime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputYou are given two arrays a and b of positive integers, with length n a...原创 2019-04-25 21:13:53 · 257 阅读 · 0 评论 -
CF920C C. Swap Adjacent Element
C. Swap Adjacent Elementstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have an array a consisting of n integers. Each integer from 1 to ...原创 2019-04-21 20:32:44 · 282 阅读 · 0 评论 -
H - Minimum Ternary String CodeForces - 1009B (思维)
You are given a ternary string (it is a string which consists only of characters ‘0’, ‘1’ and ‘2’).You can swap any two adjacent (consecutive) characters ‘0’ and ‘1’ (i.e. replace “01” with “10” or v...原创 2019-04-13 20:20:31 · 137 阅读 · 0 评论 -
D - Liebig's Barrels CodeForces - 985C
C. Liebig’s Barrelstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have m = n·k wooden staves. The i-th stave has length ai. You have to ...原创 2019-04-16 11:29:58 · 391 阅读 · 0 评论 -
C - Nastya Is Transposing Matrices CodeForces - 1136C
C. Nastya Is Transposing Matricestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNastya came to her informatics lesson, and her teacher who is...原创 2019-04-09 17:02:23 · 178 阅读 · 0 评论 -
C - Bracket Sequences Concatenation Problem CodeForces - 990C
C. Bracket Sequences Concatenation Problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA bracket sequence is a string containing only char...原创 2019-04-16 09:16:16 · 150 阅读 · 0 评论 -
J - Convert to Ones CodeForces - 997A (思维)
You’ve got a string a1,a2,…,an, consisting of zeros and ones.Let’s call a sequence of consecutive elements ai,ai + 1,…, aj (1≤ i≤ j≤ n) a substring of string a.You can apply the following operations...原创 2019-04-12 10:49:14 · 302 阅读 · 0 评论 -
C - Smallest Word CodeForces - 1043C(思维+构造)
C. Smallest Wordtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIA has so many colorful magnets on her fridge! Exactly one letter is written o...原创 2019-04-11 15:23:08 · 406 阅读 · 1 评论 -
I - Heaters CodeForces - 1066B
B. Heaterstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVova’s house is an array consisting of n elements (yeah, this is the first problem, ...原创 2019-04-10 15:24:27 · 154 阅读 · 0 评论 -
CF 1082C. Multi-Subject Competition
C. Multi-Subject Competitiontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA multi-subject competition is coming! The competition has m diff...原创 2019-04-29 19:44:16 · 174 阅读 · 0 评论