Educational Codeforces Round 155 (Rated for 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
1879 Educational Codeforces Round 155 (Rated for Div. 2) FINISHED False 7200 36257099 Sept. 24, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17338 ) C Make it Alternating PROGRAMMING combinatorics dp greedy 1300

B'You are given a binary string s . A binary string is a string consisting of characters 0 and/or 1. You can perform the following operation on s any number of times (even zero): You have to make s alternating, i. xe2 x80 x89e. after you perform the operations, every two adjacent characters in s should be different. Your goal is to calculate two values: The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of one line containing the string s ( 1 <= |s| <= 2 cdot 10^5 ). The string s consists of characters 0 and/or 1 only. Additional constraint on the input: For each test case, print two integers: the minimum number of operations you have to perform, and the number of different shortest sequences of operations. Since the second number might be large, print its remainder modulo 998244353 . In the first test case of the example, the shortest sequences of operations are: In the second test case of the example, the shortest sequences of operations are: In the third test case of the example, the only shortest sequence of operations is [] (empty sequence). '...

Tutorials

120773

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
224984286 Morty_Coder C Sept. 24, 2023, 5:25 p.m. OK C# 10 TESTS 9 62 921600 1300
225026724 bluemegane C Sept. 25, 2023, 4:50 a.m. OK C# 8 TESTS 11 93 2560000 1300
225026132 bluemegane C Sept. 25, 2023, 4:41 a.m. OK C# 8 TESTS 11 108 1740800 1300
224979570 eastnman C Sept. 24, 2023, 4:57 p.m. OK FPC TESTS 9 46 3174400 1300
225031225 beanomahto C Sept. 25, 2023, 5:49 a.m. OK GNU C++14 TESTS 11 15 512000 1300
225014684 --sa-- C Sept. 25, 2023, 1:04 a.m. OK GNU C++14 TESTS 10 15 512000 1300
225006218 AKStream C Sept. 24, 2023, 9:23 p.m. OK GNU C++14 TESTS 10 15 512000 1300
225005526 Adarsh.1704 C Sept. 24, 2023, 9:10 p.m. OK GNU C++14 TESTS 10 15 512000 1300
224994119 vish_vesh C Sept. 24, 2023, 6:44 p.m. OK GNU C++14 TESTS 10 15 512000 1300
224989931 hhoangcp C Sept. 24, 2023, 6:08 p.m. OK GNU C++14 TESTS 9 15 512000 1300
224989899 Railguns C Sept. 24, 2023, 6:07 p.m. OK GNU C++14 TESTS 9 15 512000 1300
224977127 tminh C Sept. 24, 2023, 4:46 p.m. OK GNU C++14 TESTS 9 15 512000 1300
225014020 Leasier C Sept. 25, 2023, 12:47 a.m. OK GNU C++14 TESTS 10 15 1740800 1300
224975191 Coinred001 C Sept. 24, 2023, 4:39 p.m. OK GNU C++14 TESTS 9 15 1843200 1300
225031011 KKKah C Sept. 25, 2023, 5:46 a.m. OK GNU C++17 TESTS 11 15 409600 1300
225028697 Thebeginner_3101 C Sept. 25, 2023, 5:17 a.m. OK GNU C++17 TESTS 11 15 512000 1300
225028134 orange_rain C Sept. 25, 2023, 5:09 a.m. OK GNU C++17 TESTS 11 15 512000 1300
225026912 yuYgen C Sept. 25, 2023, 4:53 a.m. OK GNU C++17 TESTS 11 15 512000 1300
225026405 ylb_Ac2003 C Sept. 25, 2023, 4:45 a.m. OK GNU C++17 TESTS 11 15 512000 1300
225014832 K1412 C Sept. 25, 2023, 1:08 a.m. OK GNU C++17 TESTS 10 15 512000 1300
225012391 argonautica C Sept. 25, 2023, 12:02 a.m. OK GNU C++17 TESTS 10 15 512000 1300
225007941 Ankit_k2 C Sept. 24, 2023, 9:56 p.m. OK GNU C++17 TESTS 10 15 512000 1300
224997816 surendra_b C Sept. 24, 2023, 7:24 p.m. OK GNU C++17 TESTS 10 15 512000 1300
224994686 aldren C Sept. 24, 2023, 6:49 p.m. OK GNU C++17 TESTS 10 15 512000 1300
225020462 chanhchuong0702 C Sept. 25, 2023, 3:05 a.m. OK GNU C++17 (64) TESTS 11 0 512000 1300
225022049 BODH C Sept. 25, 2023, 3:32 a.m. OK GNU C++17 (64) TESTS 11 15 512000 1300
225021963 BODH C Sept. 25, 2023, 3:31 a.m. OK GNU C++17 (64) TESTS 11 15 512000 1300
225021021 BODH C Sept. 25, 2023, 3:14 a.m. OK GNU C++17 (64) TESTS 11 15 512000 1300
225017672 Sy_03 C Sept. 25, 2023, 2:12 a.m. OK GNU C++17 (64) TESTS 11 15 512000 1300
225015922 JuanFPTam C Sept. 25, 2023, 1:33 a.m. OK GNU C++17 (64) TESTS 11 15 512000 1300
225009919 sky_akash C Sept. 24, 2023, 10:43 p.m. OK GNU C++17 (64) TESTS 10 15 512000 1300
225005845 puffinmuffin C Sept. 24, 2023, 9:16 p.m. OK GNU C++17 (64) TESTS 10 15 512000 1300
225004681 enslaved C Sept. 24, 2023, 8:56 p.m. OK GNU C++17 (64) TESTS 10 15 512000 1300
224999424 Pepper_yzy C Sept. 24, 2023, 7:44 p.m. OK GNU C++17 (64) TESTS 10 15 512000 1300
225023343 pangwt C Sept. 25, 2023, 3:54 a.m. OK GNU C++20 (64) TESTS 11 0 512000 1300
225018891 lh_118 C Sept. 25, 2023, 2:36 a.m. OK GNU C++20 (64) TESTS 11 0 512000 1300
225011776 manar2040 C Sept. 24, 2023, 11:43 p.m. OK GNU C++20 (64) TESTS 10 0 512000 1300
225007823 Better.Call.Vee C Sept. 24, 2023, 9:54 p.m. OK GNU C++20 (64) TESTS 10 0 512000 1300
225006154 RAVIwaves C Sept. 24, 2023, 9:22 p.m. OK GNU C++20 (64) TESTS 10 0 512000 1300
224984656 Mikami C Sept. 24, 2023, 5:27 p.m. OK GNU C++20 (64) TESTS 9 0 512000 1300
224981024 woaihutao C Sept. 24, 2023, 5:04 p.m. OK GNU C++20 (64) TESTS 9 0 921600 1300
225021132 wumbus C Sept. 25, 2023, 3:17 a.m. OK GNU C++20 (64) TESTS 11 0 1331200 1300
225013204 meimao C Sept. 25, 2023, 12:27 a.m. OK GNU C++20 (64) TESTS 10 0 2150400 1300
225010244 yazan9999 C Sept. 24, 2023, 10:52 p.m. OK GNU C++20 (64) TESTS 10 0 2150400 1300
224974867 goodluck-ccq C Sept. 24, 2023, 4:38 p.m. OK Go TESTS 9 30 1331200 1300
224987524 Kashiwa C Sept. 24, 2023, 5:49 p.m. OK Go TESTS 9 31 1536000 1300
224987088 Kashiwa C Sept. 24, 2023, 5:46 p.m. OK Go TESTS 9 31 1536000 1300
225028013 GR1ZLER C Sept. 25, 2023, 5:08 a.m. OK Java 11 TESTS 11 202 0 1300
225019710 TCchen C Sept. 25, 2023, 2:51 a.m. OK Java 11 TESTS 11 217 0 1300
224989267 aishwarykesarwani C Sept. 24, 2023, 6:02 p.m. OK Java 11 TESTS 9 218 0 1300
224980003 shibaiotk C Sept. 24, 2023, 4:59 p.m. OK Java 11 TESTS 9 233 9216000 1300
224996169 creativegiant C Sept. 24, 2023, 7:05 p.m. OK Java 11 TESTS 10 296 0 1300
224994263 zopchur C Sept. 24, 2023, 6:45 p.m. OK Java 11 TESTS 10 296 0 1300
224999981 dikshant_19 C Sept. 24, 2023, 7:51 p.m. OK Java 11 TESTS 10 311 0 1300
224982119 PlayDate C Sept. 24, 2023, 5:10 p.m. OK Java 11 TESTS 9 312 0 1300
224982666 mohancmd2531 C Sept. 24, 2023, 5:14 p.m. OK Java 11 TESTS 9 326 0 1300
225017833 wdjuruo C Sept. 25, 2023, 2:16 a.m. OK Java 11 TESTS 11 327 0 1300
225011990 dzhi C Sept. 24, 2023, 11:49 p.m. OK Java 17 TESTS 10 202 819200 1300
224989744 Nagendravarma C Sept. 24, 2023, 6:06 p.m. OK Java 17 TESTS 9 217 716800 1300
224985628 v3n1v1c11v1c1 C Sept. 24, 2023, 5:34 p.m. OK Java 17 TESTS 9 218 512000 1300
225016534 Biubiu0919 C Sept. 25, 2023, 1:48 a.m. OK Java 17 TESTS 11 218 819200 1300
224978054 Harwinvanak C Sept. 24, 2023, 4:50 p.m. OK Java 17 TESTS 9 233 614400 1300
225028243 ikun111 C Sept. 25, 2023, 5:11 a.m. OK Java 17 TESTS 11 233 716800 1300
224980292 sahil.dhiman03022001 C Sept. 24, 2023, 5:01 p.m. OK Java 17 TESTS 9 233 716800 1300
224974821 tushar19280 C Sept. 24, 2023, 4:38 p.m. OK Java 17 TESTS 9 234 40345600 1300
225030897 idonthatephy C Sept. 25, 2023, 5:44 a.m. OK Java 17 TESTS 11 249 716800 1300
224995548 ManasR_2003 C Sept. 24, 2023, 6:58 p.m. OK Java 17 TESTS 10 264 42598400 1300
224983621 jasrajsb C Sept. 24, 2023, 5:20 p.m. OK Java 21 TESTS 9 311 0 1300
224997502 himneesh9 C Sept. 24, 2023, 7:21 p.m. OK Java 21 TESTS 10 312 15564800 1300
224986199 codechefpurpose2023 C Sept. 24, 2023, 5:39 p.m. OK Java 8 TESTS 9 109 0 1300
225030870 tiwariabhishek C Sept. 25, 2023, 5:44 a.m. OK Java 8 TESTS 11 124 0 1300
224988331 Akarsh2810 C Sept. 24, 2023, 5:55 p.m. OK Java 8 TESTS 9 139 0 1300
225004363 vrishabshetty C Sept. 24, 2023, 8:51 p.m. OK Java 8 TESTS 10 155 0 1300
224976334 dumanyes C Sept. 24, 2023, 4:43 p.m. OK Java 8 TESTS 9 171 0 1300
224975374 mickeyarora6250 C Sept. 24, 2023, 4:40 p.m. OK Java 8 TESTS 9 202 0 1300
224988166 Sumitsingh7 C Sept. 24, 2023, 5:54 p.m. OK Java 8 TESTS 9 202 16793600 1300
224984752 ExtractStars C Sept. 24, 2023, 5:28 p.m. OK MS C++ 2017 TESTS 9 46 409600 1300
224978167 priyanshu9506992625 C Sept. 24, 2023, 4:50 p.m. OK MS C++ 2017 TESTS 9 46 614400 1300
224988908 Tech135 C Sept. 24, 2023, 5:59 p.m. OK PyPy 3 TESTS 9 140 6348800 1300
225013984 Keval_78 C Sept. 25, 2023, 12:46 a.m. OK PyPy 3 TESTS 10 155 71680000 1300
224979046 DRDIV C Sept. 24, 2023, 4:55 p.m. OK PyPy 3 TESTS 9 264 7577600 1300
224982495 JB_AT C Sept. 24, 2023, 5:13 p.m. OK PyPy 3 TESTS 9 280 6348800 1300
224993744 HelloImLearning C Sept. 24, 2023, 6:41 p.m. OK PyPy 3 TESTS 10 327 18841600 1300
224975619 hchchc C Sept. 24, 2023, 4:41 p.m. OK PyPy 3 TESTS 9 358 18841600 1300
224980442 JB_AT C Sept. 24, 2023, 5:02 p.m. OK PyPy 3 TESTS 9 1435 11571200 1300
224980029 alpy123 C Sept. 24, 2023, 4:59 p.m. OK PyPy 3 TESTS 9 1465 11059200 1300
224993647 jvatsal0709 C Sept. 24, 2023, 6:40 p.m. OK PyPy 3 TESTS 10 1528 10854400 1300
224991300 re-wa-tl-ok C Sept. 24, 2023, 6:19 p.m. OK PyPy 3 TESTS 10 1528 15257600 1300
224992280 gardengnome C Sept. 24, 2023, 6:27 p.m. OK PyPy 3-64 TESTS 10 93 8089600 1300
224991866 gardengnome C Sept. 24, 2023, 6:24 p.m. OK PyPy 3-64 TESTS 10 93 8089600 1300
224978183 Super_Misha C Sept. 24, 2023, 4:50 p.m. OK PyPy 3-64 TESTS 9 93 8192000 1300
224980932 1__2345_6 C Sept. 24, 2023, 5:04 p.m. OK PyPy 3-64 TESTS 9 93 9625600 1300
224989130 ITSpecialist C Sept. 24, 2023, 6:01 p.m. OK PyPy 3-64 TESTS 9 93 20787200 1300
225016513 mikeac C Sept. 25, 2023, 1:48 a.m. OK PyPy 3-64 TESTS 11 93 20992000 1300
224989039 flexr C Sept. 24, 2023, 6:01 p.m. OK PyPy 3-64 TESTS 9 108 8089600 1300
224974747 riroan C Sept. 24, 2023, 4:38 p.m. OK PyPy 3-64 TESTS 9 108 14028800 1300
224978918 bruher C Sept. 24, 2023, 4:54 p.m. OK PyPy 3-64 TESTS 9 109 6144000 1300
225021183 motsuni04 C Sept. 25, 2023, 3:17 a.m. OK PyPy 3-64 TESTS 11 109 7884800 1300
225010702 yliu1021 C Sept. 24, 2023, 11:06 p.m. OK Python 3 TESTS 10 124 409600 1300
225002475 gauva_sauce C Sept. 24, 2023, 8:23 p.m. OK Python 3 TESTS 10 124 409600 1300
224997924 HAL_9000 C Sept. 24, 2023, 7:27 p.m. OK Python 3 TESTS 10 124 614400 1300
225031882 vaik C Sept. 25, 2023, 5:57 a.m. OK Python 3 TESTS 11 124 1331200 1300
224980273 KawaiiNahida C Sept. 24, 2023, 5:01 p.m. OK Python 3 TESTS 9 139 409600 1300
224983890 lokesh_var C Sept. 24, 2023, 5:22 p.m. OK Python 3 TESTS 9 140 614400 1300
225028924 vishnu_sathwik C Sept. 25, 2023, 5:20 a.m. OK Python 3 TESTS 11 155 409600 1300
224975920 ProCoder12 C Sept. 24, 2023, 4:42 p.m. OK Python 3 TESTS 9 155 614400 1300
225027437 NormanYeetus C Sept. 25, 2023, 5 a.m. OK Python 3 TESTS 11 155 1331200 1300
224983104 smam-mahdi C Sept. 24, 2023, 5:17 p.m. OK Python 3 TESTS 9 156 409600 1300
225018260 gr8den C Sept. 25, 2023, 2:25 a.m. OK Rust 2021 TESTS 11 30 23244800 1300
225019542 gr8den C Sept. 25, 2023, 2:48 a.m. OK Rust 2021 TESTS 11 31 23244800 1300

remove filters

Back to search problems