codeforces
文章平均质量分 83
Whowell
欢迎自荐或推荐实习/校招(字节)!
加油,加油,朝着自己的梦想!!!!!
展开
-
CodeForces - 808B .Average Sleep Time
CodeForces - 808B B. Average Sleep Timetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt's been almost a week since Polycarp couldn't get rid of i...原创 2018-04-05 14:08:37 · 141 阅读 · 0 评论 -
Codeforces 327A. Flipping Game[ 最大子序列的和 ]
A. Flipping Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub got bored, so he invented a game to be played on paper.He writes n integers a...原创 2018-04-28 18:57:52 · 427 阅读 · 0 评论 -
Codeforces 550 A. Two Substrings
A. Two Substringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given string s. Your task is to determine if the given string s contains ...原创 2018-04-28 23:19:02 · 188 阅读 · 0 评论 -
Codeforces 732 B. Cormen — The Best Friend Of a Man [ 贪心 ]
B. Cormen — The Best Friend Of a Mantime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently a dog was bought for Polycarp. The dog's name is Corme...原创 2018-04-29 00:07:37 · 134 阅读 · 0 评论 -
Codeforces DP 练习
Codeforces 466 C. Number of Ways【前缀】C. Number of Waystime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've got array a[1], a[2], ..., a[n], consi...原创 2018-04-29 13:01:28 · 576 阅读 · 0 评论 -
Codeforces Round #482 (Div. 2) 979B - Treasure Hunt [思维]
B. Treasure Hunttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter the big birthday party, Katie still wanted Shiro to have some more fun. Later...原创 2018-05-15 13:50:41 · 255 阅读 · 0 评论 -
Codeforces 979C - Kuro and Walking Route [dfs + 思维]
C. Kuro and Walking Routetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKuro is living in a country called Uberland, consisting of nn towns, numb...原创 2018-05-15 17:05:07 · 371 阅读 · 0 评论 -
Codeforces Round #483 [Thanks, Botan Investments and Victor Shaburov!] Editoral
T1:A. Gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputTwo players play a game.Initially there are nn integers a1,a2,…,ana1,a2,…,an written on ...原创 2018-05-16 16:31:40 · 274 阅读 · 0 评论 -
Codeforces 985 C. Liebig's Barrels[贪心]
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 assem...原创 2018-05-24 21:57:18 · 160 阅读 · 0 评论 -
Codeforces 981 C. Useful Decomposition [思维]
C. Useful Decompositiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRamesses knows a lot about problems involving trees (undirected connected gr...原创 2018-05-28 14:03:10 · 587 阅读 · 0 评论 -
Codeforces 981 D. Bookshelves [dp + 贪心]
D. Bookshelvestime limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputMr Keks is a typical white-collar in Byteland.He has a bookshelf in his office wi...原创 2018-05-28 15:53:47 · 384 阅读 · 0 评论 -
Educational Codeforces Round 45 (Rated for Div. 2) 990B. Micro-World [ 贪心 ]
B. Micro-Worldtime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputYou have a Petri dish with bacteria and you are preparing to dive into the harsh...原创 2018-06-11 15:28:21 · 273 阅读 · 0 评论 -
Educational Codeforces Round 45 990C. Bracket Sequences Concatenation Problem [思维]
C. Bracket Sequences Concatenation Problemtime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputA bracket sequence is a string containing only chara...原创 2018-06-11 15:51:43 · 332 阅读 · 0 评论 -
Educational Codeforces Round 45 990 E. Post Lamps [ 思维 + 贪心 ]
E. Post Lampstime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputAdilbek's house is located on a street which can be represented as the OX axis. T...原创 2018-06-12 10:31:38 · 702 阅读 · 3 评论 -
Codeforces Round #487 (Div. 2) C. A Mist of Florescence [思维+构造矩阵]
C. A Mist of Florescencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs the boat drifts down the river, a wood full of blossoms shows up on the ...原创 2018-06-12 19:50:14 · 153 阅读 · 0 评论 -
Codeforces Round #487 (Div. 2) A. A Blend of Springtime [思维题]
A. A Blend of Springtimetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhen the curtains are opened, a canvas unfolds outside. Kanno marvels at al...原创 2018-06-12 20:00:09 · 170 阅读 · 0 评论 -
Codeforces 987 B. High School: Become Human [思维]
B. High School: Become Humantime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYear 2118. Androids are in mass production for decades now, and they do...原创 2018-05-30 09:04:43 · 496 阅读 · 2 评论 -
Codeforces 489 C. Given Length and Sum of Digits...[ 贪心 ]
C. Given Length and Sum of Digits...time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a positive integer m and a non-negative integer s. You...原创 2018-04-28 16:51:15 · 180 阅读 · 2 评论 -
Codeforces 189 A. Cut Ribbon(DP 恰装满的完全背包问题)
A. Cut Ribbontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus has a ribbon, its length is n. He wants to cut the ribbon in a way that ful...原创 2018-04-28 13:58:24 · 299 阅读 · 0 评论 -
CodeForces - 808A. Lucky Year
CodeForces - 808A A. Lucky Yeartime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputApart from having lots of holidays throughout the year, residents of...原创 2018-04-05 14:33:11 · 155 阅读 · 0 评论 -
CodeForces - 808C. Tea Party
C. Tea Partytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp invited all his friends to the tea party to celebrate the holiday. He has n cu...原创 2018-04-05 14:35:16 · 171 阅读 · 0 评论 -
Codeforces 964A. Splits (找规律)
A. Splitstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's define a split of n as a nonincreasing sequence of positive integers, the sum of whi...原创 2018-04-18 16:39:09 · 299 阅读 · 0 评论 -
codeforces 964B Messages
B. Messagestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n incoming messages for Vasya. The i-th message is going to be received after ...原创 2018-04-20 18:00:43 · 393 阅读 · 0 评论 -
Codeforces 967 A. Mind the Gap [思维]
A. Mind the Gaptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThese days Arkady works as an air traffic controller at a large airport. He controls...原创 2018-04-30 17:03:01 · 337 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) A Aramic script[ 思维 + set]
AAramic script A. Aramic scripttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn Aramic language words can only represent objects.Words in Aramic ...原创 2018-05-02 13:11:48 · 117 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) B Mancala
BMancalaB. Mancalatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMancala is a game famous in the Middle East. It is played on a board that consist...原创 2018-05-02 13:27:52 · 331 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) C. Valhalla Siege
C. Valhalla Siegetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIvar the Boneless is a great leader. He is trying to capture Kattegat from Lagert...原创 2018-05-02 13:34:28 · 170 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) 975D - Ghosts
D. Ghosts time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGhosts live in harmony and peace, they travel the space without any purpose other than s...原创 2018-05-02 17:36:40 · 147 阅读 · 0 评论 -
codeforces 962 A. Equator
A. Equatortime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp has created his own training plan to prepare for the programming contests. He w...原创 2018-04-25 22:18:42 · 149 阅读 · 0 评论 -
codeforces 962 B. Students in Railway Carriage
B. Students in Railway Carriagetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn consecutive seat places in a railway carriage. Each pl...原创 2018-04-25 22:20:47 · 155 阅读 · 0 评论 -
codeforces 962 C. Make a Square
C. Make a Squaretime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a positive integer nn, written without leading zeroes (for example, ...原创 2018-04-25 22:23:14 · 143 阅读 · 0 评论 -
codeforces 962 D. Merge Equals
D. Merge Equalstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array of positive integers. While there are at least two equal ele...原创 2018-04-26 20:15:47 · 177 阅读 · 0 评论 -
Codeforces Round #480 (Div. 2) C. Posterized
C. Posterizedtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputProfessor Ibrahim has prepared the final homework for his algorithm’s class. He asked ...原创 2018-05-11 13:00:34 · 120 阅读 · 0 评论 -
codeforces 962 E. Byteland, Berland and Disputed Cities
E. Byteland, Berland and Disputed Citiestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe cities of Byteland and Berland are located on the axis...原创 2018-04-28 10:14:15 · 267 阅读 · 0 评论 -
Codeforces 455A. Boredom [ 简单DP ]
A. Boredomtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlex doesn't like boredom. That's why whenever he gets bored, he comes up with games. One...原创 2018-04-28 13:17:56 · 307 阅读 · 0 评论 -
Codeforces 987 C. Three displays [思维 +递推dp]
C. Three displaystime limit per tes :1 secondmemory limit per test :256 megabytesinput :standard inputoutput :standard outputIt is the middle of 2018 and Maria Stepanovna, who lives outside Krasnokame...原创 2018-05-30 09:54:37 · 713 阅读 · 0 评论