Codeforces Round 455 (Div. 2)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
909 Codeforces Round 455 (Div. 2) FINISHED False 7200 217430699 Dec. 27, 2017, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1948 ) D Colorful Points PROGRAMMING data structures greedy implementation 2100

B'You are given a set of points on a straight line. Each point has a color assigned to it. For point a, its neighbors are the points which don 't have any other points between them and a. Each point has at most two neighbors - one from the left and one from the right. You perform a sequence of operations on this set of points. In one operation, you delete all points which have a neighbor point of a different color than the point itself. Points are deleted simultaneously, i.e. first you decide which points have to be deleted and then delete them. After that you can perform the next operation etc. If an operation would not delete any points, you can 't perform it. How many operations will you need to perform until the next operation does not have any points to delete? Input contains a single string of lowercase English letters 'a '- 'z '. The letters give the points ' colors in the order in which they are arranged on the line: the first letter gives the color of the leftmost point, the second gives the color of the second point from the left etc. The number of the points is between 1 and 106. Output one line containing an integer - the number of operations which can be performed on the given set of points until there are no more points to delete. In the first test case, the first operation will delete two middle points and leave points "ab", which will be deleted with the second operation. There will be no points left to apply the third operation to. In the second test case, the first operation will delete the four points in the middle, leaving points "aa". None of them have neighbors of other colors, so the second operation can 't be applied. '...

Tutorials

Codeforces Round #455 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
33797241 nanae1914 D Dec. 29, 2017, 11:15 p.m. OK D TESTS 73 93 30310400 2100
46106281 chaorenhaha D Nov. 23, 2018, 9:24 a.m. OK FPC TESTS 73 46 16486400 2100
33886768 TsReaper D Jan. 3, 2018, 2:27 p.m. OK GNU C TESTS 73 46 14848000 2100
34533066 Dmaxiya D Jan. 25, 2018, 1:45 a.m. OK GNU C++ TESTS 73 15 11059200 2100
34596922 josue.0 D Jan. 27, 2018, 6:54 a.m. OK GNU C++ TESTS 73 15 13107200 2100
34533080 vjudge2 D Jan. 25, 2018, 1:46 a.m. OK GNU C++ TESTS 73 30 11059200 2100
34521947 Dmaxiya D Jan. 24, 2018, 3:46 p.m. OK GNU C++ TESTS 73 30 15052800 2100
34724237 vjudge1 D Jan. 31, 2018, 1:45 a.m. OK GNU C++ TESTS 73 31 8089600 2100
34477403 Scut82 D Jan. 23, 2018, 10:07 a.m. OK GNU C++ TESTS 73 31 8089600 2100
39515916 vjudge3 D June 22, 2018, 12:08 p.m. OK GNU C++ TESTS 73 31 9011200 2100
39507672 vjudge1 D June 22, 2018, 6:24 a.m. OK GNU C++ TESTS 73 31 9011200 2100
40780830 lhnrichy D July 26, 2018, 1:40 p.m. OK GNU C++ TESTS 73 31 10137600 2100
34694270 hrbust_lmh D Jan. 30, 2018, 1:32 a.m. OK GNU C++ TESTS 73 31 10854400 2100
33849826 yrz D Jan. 1, 2018, 3:17 p.m. OK GNU C++11 TESTS 73 15 11059200 2100
34788628 vjudge4 D Feb. 1, 2018, 4:26 a.m. OK GNU C++11 TESTS 73 30 11059200 2100
34197285 Hazyknight D Jan. 15, 2018, 1:01 p.m. OK GNU C++11 TESTS 73 30 12185600 2100
34077210 p_olli D Jan. 10, 2018, 8:41 p.m. OK GNU C++11 TESTS 73 30 12185600 2100
33703757 Mikel_Arteta_8 D Dec. 28, 2017, 7:50 a.m. OK GNU C++11 TESTS 73 30 13107200 2100
33692008 AlanWaP D Dec. 27, 2017, 6:25 p.m. OK GNU C++11 TESTS 73 30 19148800 2100
33687093 rajat1603 D Dec. 27, 2017, 5:46 p.m. OK GNU C++11 TESTS 73 30 19148800 2100
35538741 __________ D Feb. 21, 2018, 5:52 a.m. OK GNU C++11 TESTS 73 30 20787200 2100
35510575 RNS_MHB D Feb. 20, 2018, 3:52 a.m. OK GNU C++11 TESTS 73 31 8089600 2100
34727668 code2016329621039 D Jan. 31, 2018, 6:03 a.m. OK GNU C++11 TESTS 73 31 8089600 2100
33704934 tomlau D Dec. 28, 2017, 8:55 a.m. OK GNU C++14 TESTS 73 15 4198400 2100
33892474 akapros D Jan. 3, 2018, 8 p.m. OK GNU C++14 TESTS 73 15 18944000 2100
34079698 jzqjzq D Jan. 11, 2018, 1:45 a.m. OK GNU C++14 TESTS 73 30 7884800 2100
33896491 previc D Jan. 4, 2018, 5:25 a.m. OK GNU C++14 TESTS 73 30 10854400 2100
33817369 fzu_cwj D Dec. 30, 2017, 6:10 p.m. OK GNU C++14 TESTS 73 30 10956800 2100
33703518 bentjacobson D Dec. 28, 2017, 7:36 a.m. OK GNU C++14 TESTS 73 30 15564800 2100
33708308 shubhiks1032 D Dec. 28, 2017, 11:46 a.m. OK GNU C++14 TESTS 73 30 16076800 2100
33685732 MicGor D Dec. 27, 2017, 5:37 p.m. OK GNU C++14 TESTS 73 30 16076800 2100
35918329 FlyInTheSky D March 4, 2018, 11:38 a.m. OK GNU C++14 TESTS 73 30 18944000 2100
33683831 zhabo D Dec. 27, 2017, 5:24 p.m. OK GNU C++14 TESTS 73 30 20070400 2100
42026795 crathva D Aug. 24, 2018, 12:59 p.m. OK GNU C++17 TESTS 73 31 7168000 2100
41436783 rabbitcxk D Aug. 10, 2018, 3:36 p.m. OK GNU C++17 TESTS 73 31 11059200 2100
38758102 zbtrs D May 30, 2018, 3:39 a.m. OK GNU C++17 TESTS 73 31 12390400 2100
59001059 HNO2 D Aug. 18, 2019, 1:46 p.m. OK GNU C++17 TESTS 73 31 14233600 2100
39637529 vjudge2 D June 25, 2018, 4:06 a.m. OK GNU C++17 TESTS 73 31 14233600 2100
39520482 vjudge1 D June 22, 2018, 3:24 p.m. OK GNU C++17 TESTS 73 31 14233600 2100
37357549 nikolayterek D April 15, 2018, 4:15 p.m. OK GNU C++17 TESTS 73 31 17510400 2100
37922566 vjudge2 D May 6, 2018, 7:52 a.m. OK GNU C++17 TESTS 73 31 20377600 2100
37984865 p.tasbihgou D May 7, 2018, 4:33 a.m. OK GNU C++17 TESTS 73 31 21606400 2100
52293443 chuducanhchy D April 4, 2019, 4:22 a.m. OK GNU C++17 TESTS 73 46 10137600 2100
34701631 gograph D Jan. 30, 2018, 7:48 a.m. OK GNU C++17 Diagnostics TESTS 73 1201 111001600 2100
34701451 gograph D Jan. 30, 2018, 7:41 a.m. OK GNU C++17 Diagnostics TESTS 73 1232 111104000 2100
33696569 filo D Dec. 27, 2017, 9:32 p.m. OK Go TESTS 73 62 59494400 2100
35516847 haskellscott_wu D Feb. 20, 2018, 9:26 a.m. OK Haskell TESTS 73 467 155340800 2100
34067784 uwi D Jan. 10, 2018, 11:39 a.m. OK Java 8 TESTS 73 155 25702400 2100
33712492 spandey128 D Dec. 28, 2017, 1:59 p.m. OK Java 8 TESTS 73 171 46796800 2100
33912561 beroul D Jan. 4, 2018, 10:54 p.m. OK Java 8 TESTS 73 171 53248000 2100
33912508 beroul D Jan. 4, 2018, 10:48 p.m. OK Java 8 TESTS 73 171 57241600 2100
33696708 Noureldin D Dec. 27, 2017, 9:43 p.m. OK Java 8 TESTS 73 187 39219200 2100
33912544 beroul D Jan. 4, 2018, 10:53 p.m. OK Java 8 TESTS 73 187 53248000 2100
33696596 csullivan203 D Dec. 27, 2017, 9:34 p.m. OK Java 8 TESTS 73 202 33484800 2100
33892907 r1shi D Jan. 3, 2018, 8:34 p.m. OK Java 8 TESTS 73 218 41779200 2100
33892937 r1shi D Jan. 3, 2018, 8:37 p.m. OK Java 8 TESTS 73 218 41881600 2100
33743614 -turo D Dec. 28, 2017, 6:35 p.m. OK Java 8 TESTS 73 233 25804800 2100
37355858 Gugulete D April 15, 2018, 2:42 p.m. OK Mono C# TESTS 73 109 37785600 2100
33828845 og.kostya D Dec. 31, 2017, 9:49 a.m. OK MS C# TESTS 73 389 74137600 2100
33693074 xxxcul D Dec. 27, 2017, 6:33 p.m. OK MS C# TESTS 73 1248 36556800 2100
48318512 vjudge2 D Jan. 13, 2019, 7:58 a.m. OK MS C++ TESTS 73 31 9011200 2100
37921789 vjudge3 D May 6, 2018, 7:19 a.m. OK MS C++ TESTS 73 31 10137600 2100
34701726 vjudge5 D Jan. 30, 2018, 7:51 a.m. OK MS C++ TESTS 73 31 11059200 2100
38775414 vjudge1 D May 30, 2018, 1:51 p.m. OK MS C++ TESTS 73 31 28876800 2100
38774726 ys1468362286 D May 30, 2018, 1:30 p.m. OK MS C++ TESTS 73 31 28876800 2100
66165568 sunnyorrainy D Dec. 2, 2019, 7:24 a.m. OK MS C++ TESTS 73 46 9011200 2100
68381814 vjudge5 D Jan. 8, 2020, 2:06 a.m. OK MS C++ TESTS 73 46 9011200 2100
66165564 vjudge2 D Dec. 2, 2019, 7:24 a.m. OK MS C++ TESTS 73 46 9011200 2100
48318271 vjudge5 D Jan. 13, 2019, 7:50 a.m. OK MS C++ TESTS 73 46 9011200 2100
48317072 vjudge3 D Jan. 13, 2019, 7:09 a.m. OK MS C++ TESTS 73 46 9011200 2100
33692190 geek_geek D Dec. 27, 2017, 6:27 p.m. OK PyPy 2 TESTS 73 374 95948800 2100
34463608 eightants D Jan. 23, 2018, 12:46 a.m. OK PyPy 2 TESTS 73 499 107827200 2100
41334938 Onesh0t D Aug. 8, 2018, 11:25 a.m. OK PyPy 2 TESTS 73 608 95334400 2100
33873322 dbhrockzz D Jan. 2, 2018, 8:28 p.m. OK PyPy 2 TESTS 73 685 136396800 2100
33695524 NVAL D Dec. 27, 2017, 8:21 p.m. OK PyPy 3 TESTS 73 405 92160000 2100
33694677 pajenegod D Dec. 27, 2017, 7:42 p.m. OK PyPy 3 TESTS 73 451 85811200 2100
33741712 madhav_1999 D Dec. 28, 2017, 5:12 p.m. OK PyPy 3 TESTS 73 592 141414400 2100
33722580 prakhar17252 D Dec. 28, 2017, 2:33 p.m. OK PyPy 3 TESTS 73 592 141414400 2100
33694557 myHan D Dec. 27, 2017, 7:38 p.m. OK PyPy 3 TESTS 73 592 141721600 2100
33697608 PavelChadnov D Dec. 27, 2017, 11:05 p.m. OK Python 2 TESTS 73 1606 69529600 2100
39213397 Ali_Pi D June 13, 2018, 10:43 a.m. OK Python 2 TESTS 73 1700 67276800 2100
68476837 NocturneBflat D Jan. 10, 2020, 6 a.m. OK Python 3 TESTS 73 1279 49868800 2100
33689738 Gerbuz D Dec. 27, 2017, 6:07 p.m. OK Python 3 TESTS 73 1294 21094400 2100
33691511 Smurf1 D Dec. 27, 2017, 6:21 p.m. OK Python 3 TESTS 73 1419 55705600 2100
33722734 prakhar17252 D Dec. 28, 2017, 2:33 p.m. OK Python 3 TESTS 73 1560 65536000 2100
34767626 hatoo D Jan. 31, 2018, 2:43 p.m. OK Rust TESTS 73 31 18022400 2100
33744266 limed D Dec. 28, 2017, 7:10 p.m. OK Scala TESTS 73 701 77209600 2100

remove filters

Back to search problems