Educational Codeforces Round 92 (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
1389 Educational Codeforces Round 92 (Rated for Div. 2) FINISHED False 7200 135789899 July 29, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19113 ) C Good String PROGRAMMING brute force dp greedy implementation two pointers

B"Let's call left cyclic shift of some string t_1 t_2 t_3 ... t_{n - 1} t_n as string t_2 t_3 ... t_{n - 1} t_n t_1 . Analogically, let's call right cyclic shift of string t as string t_n t_1 t_2 t_3 ... t_{n - 1} . Let's say string t is good if its left cyclic shift is equal to its right cyclic shift. You are given string s which consists of digits 0 xe2 x80 x939. What is the minimum number of characters you need to erase from s to make it good? The first line contains single integer t ( 1 <= t <= 1000 ) -- the number of test cases. Next t lines contains test cases -- one per line. The first and only line of each test case contains string s ( 2 <= |s| <= 2 cdot 10^5 ). Each character s_i is digit 0 xe2 x80 x939. It's guaranteed that the total length of strings doesn't exceed 2 cdot 10^5 . For each test case, print the minimum number of characters you need to erase from s to make it good. In the first test case, you can erase any 3 characters, for example, the 1 -st, the 3 -rd, and the 4 -th. You'll get string 51 and it is good. In the second test case, we can erase all characters except 0: the remaining string is 0000 and it's good. In the third test case, the given string s is already good. "...

Tutorials

80809

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
91160579 simran145 C Aug. 27, 2020, 6:27 p.m. OK GNU C11 TESTS 9 62 204800
88907607 dyxx C Aug. 5, 2020, 12:47 a.m. OK GNU C11 TESTS 9 62 3891200
89137431 JoseTomas01 C Aug. 6, 2020, 3:31 p.m. OK GNU C11 TESTS 9 77 3891200
89794212 Code2341 C Aug. 13, 2020, 12:40 p.m. OK GNU C++11 TESTS 9 31 204800
90372536 zj20171 C Aug. 19, 2020, 8:45 a.m. OK GNU C++11 TESTS 9 31 307200
90869417 Nyse C Aug. 25, 2020, 5:14 a.m. OK GNU C++11 TESTS 9 31 512000
90869183 Vanquisher C Aug. 25, 2020, 5:10 a.m. OK GNU C++11 TESTS 9 31 512000
89405714 lynko C Aug. 9, 2020, 2:17 p.m. OK GNU C++11 TESTS 9 31 4096000
88790920 YangKun. C Aug. 3, 2020, 10:42 a.m. OK GNU C++11 TESTS 9 31 4096000
89167673 vjudge4 C Aug. 7, 2020, 2:45 a.m. OK GNU C++11 TESTS 9 31 6144000
89788830 WhiteCmile C Aug. 13, 2020, 11:33 a.m. OK GNU C++11 TESTS 9 31 12185600
90373295 cym_ C Aug. 19, 2020, 8:56 a.m. OK GNU C++11 TESTS 9 46 204800
91640684 BLUESKY007 C Sept. 2, 2020, 12:36 p.m. OK GNU C++11 TESTS 9 46 204800
91042854 dtmn C Aug. 26, 2020, 10:53 a.m. OK GNU C++14 TESTS 9 31 512000
89331198 michaelzhao C Aug. 8, 2020, 11:43 a.m. OK GNU C++14 TESTS 9 31 3891200
89146032 lakshsingla C Aug. 6, 2020, 5:10 p.m. OK GNU C++14 TESTS 9 31 4300800
88880354 tourist_practice C Aug. 4, 2020, 2:39 p.m. OK GNU C++14 TESTS 9 31 4300800
89494315 bazsi700 C Aug. 10, 2020, 8:39 a.m. OK GNU C++14 TESTS 9 31 4300800
89189025 K_akarot_123 C Aug. 7, 2020, 8:43 a.m. OK GNU C++14 TESTS 9 31 4300800
89585227 Valters07 C Aug. 11, 2020, 2:24 p.m. OK GNU C++14 TESTS 9 31 4300800
90508472 Escape_111 C Aug. 21, 2020, 6:47 a.m. OK GNU C++14 TESTS 9 31 6451200
91557959 raghav.blacklist1 C Sept. 1, 2020, 10:53 a.m. OK GNU C++14 TESTS 9 46 512000
91700852 SHoang C Sept. 3, 2020, 8:35 a.m. OK GNU C++14 TESTS 9 46 512000
89533613 TeamRocket C Aug. 10, 2020, 7:57 p.m. OK GNU C++17 TESTS 9 30 5017600
90429811 littlebox C Aug. 20, 2020, 3:34 a.m. OK GNU C++17 TESTS 9 31 512000
90429758 forceac C Aug. 20, 2020, 3:32 a.m. OK GNU C++17 TESTS 9 31 512000
88637858 WJMDBMR C Aug. 1, 2020, 6:10 a.m. OK GNU C++17 TESTS 9 31 3891200
88630394 iLovePKU_zbtxdy C Aug. 1, 2020, 3:08 a.m. OK GNU C++17 TESTS 9 31 4300800
89490852 Karliver C Aug. 10, 2020, 7:48 a.m. OK GNU C++17 TESTS 9 31 4300800
89471627 ultimatron C Aug. 10, 2020, 12:55 a.m. OK GNU C++17 TESTS 9 31 4300800
88670940 ST_C C Aug. 1, 2020, 2:05 p.m. OK GNU C++17 TESTS 9 31 4300800
88642680 chinmaymighty C Aug. 1, 2020, 7:28 a.m. OK GNU C++17 TESTS 9 31 4300800
89473697 acccccccc C Aug. 10, 2020, 2:14 a.m. OK GNU C++17 TESTS 9 31 6041600
90887081 neweekoff C Aug. 25, 2020, 9:38 a.m. OK GNU C++17 (64) TESTS 9 31 512000
89195975 GRandle C Aug. 7, 2020, 10:29 a.m. OK GNU C++17 (64) TESTS 9 31 4812800
90084601 Arif19 C Aug. 16, 2020, 1:22 p.m. OK GNU C++17 (64) TESTS 9 46 102400
90428268 Joker_Gamer C Aug. 20, 2020, 2:45 a.m. OK GNU C++17 (64) TESTS 9 46 204800
89793388 iaNTU C Aug. 13, 2020, 12:30 p.m. OK GNU C++17 (64) TESTS 9 46 512000
89832669 lightseba C Aug. 14, 2020, 12:48 a.m. OK GNU C++17 (64) TESTS 9 46 512000
91131914 hardiksh0512 C Aug. 27, 2020, 12:20 p.m. OK GNU C++17 (64) TESTS 9 46 512000
91100384 shelby537 C Aug. 27, 2020, 3:37 a.m. OK GNU C++17 (64) TESTS 9 46 512000
91074632 shelby537 C Aug. 26, 2020, 4:26 p.m. OK GNU C++17 (64) TESTS 9 46 512000
91055408 _stranger_el C Aug. 26, 2020, 1:18 p.m. OK GNU C++17 (64) TESTS 9 46 512000
89545828 Trishan C Aug. 11, 2020, 3:47 a.m. OK Go TESTS 9 46 34713600
88650637 wp32pw C Aug. 1, 2020, 9:20 a.m. OK Go TESTS 9 62 11980800
89147518 pohzipohzi C Aug. 6, 2020, 5:31 p.m. OK Go TESTS 9 93 13004800
88840582 atilol C Aug. 4, 2020, 4:42 a.m. OK Go TESTS 9 187 16076800
89853083 RetiredProgrammer C Aug. 14, 2020, 8:10 a.m. OK Go TESTS 9 764 86425600
91044243 virendra_12 C Aug. 26, 2020, 11:12 a.m. OK Java 11 TESTS 9 218 0
90355611 PizzaLovers007 C Aug. 19, 2020, 4:03 a.m. OK Java 11 TESTS 9 218 0
90631438 yashkundu C Aug. 21, 2020, 7:01 p.m. OK Java 11 TESTS 9 218 23859200
89813272 emmalachaitanya C Aug. 13, 2020, 4:36 p.m. OK Java 11 TESTS 9 233 0
89078310 codingIsFun1234 C Aug. 6, 2020, 1:21 a.m. OK Java 11 TESTS 9 233 23859200
89326820 Baroudy C Aug. 8, 2020, 10:32 a.m. OK Java 11 TESTS 9 234 23756800
90015453 boltUsain C Aug. 15, 2020, 11:46 a.m. OK Java 11 TESTS 9 249 0
90906411 cr777 C Aug. 25, 2020, 2:12 p.m. OK Java 11 TESTS 9 264 0
89369100 Reiltuo C Aug. 9, 2020, 2:11 a.m. OK Java 11 TESTS 9 264 23859200
90833149 gsahil216 C Aug. 24, 2020, 2:14 p.m. OK Java 11 TESTS 9 265 23859200
89087594 AnandOza C Aug. 6, 2020, 4:58 a.m. OK Java 8 TESTS 9 140 20480000
88675755 k_6101 C Aug. 1, 2020, 3:12 p.m. OK Java 8 TESTS 9 140 20480000
89605959 deepanshu.bagri98 C Aug. 11, 2020, 7:41 p.m. OK Java 8 TESTS 9 155 20480000
88776816 hp.rohitsharma C Aug. 3, 2020, 6:37 a.m. OK Java 8 TESTS 9 155 20480000
90196508 eng_hardik C Aug. 17, 2020, 5:36 a.m. OK Java 8 TESTS 9 156 0
89353263 f20170225 C Aug. 8, 2020, 5:19 p.m. OK Java 8 TESTS 9 170 20480000
91299238 chesiver C Aug. 29, 2020, 4:30 p.m. OK Java 8 TESTS 9 171 0
88799677 ineffablekenobi C Aug. 3, 2020, 12:51 p.m. OK Java 8 TESTS 9 171 20275200
89064908 anathema C Aug. 5, 2020, 6:49 p.m. OK Java 8 TESTS 9 171 20377600
88695307 DepressoEspresso C Aug. 1, 2020, 10:22 p.m. OK Java 8 TESTS 9 171 20480000
88648052 wuchaojie925 C Aug. 1, 2020, 8:44 a.m. OK Kotlin TESTS 9 171 21401600
89585671 felix412441 C Aug. 11, 2020, 2:29 p.m. OK Kotlin TESTS 9 202 20582400
89652582 koper C Aug. 12, 2020, 1:01 p.m. OK Kotlin TESTS 9 202 21504000
88712096 wbars C Aug. 2, 2020, 7:41 a.m. OK Kotlin TESTS 9 233 21606400
88647585 wuchaojie925 C Aug. 1, 2020, 8:38 a.m. OK Kotlin TESTS 9 639 21504000
90518483 ynsh C Aug. 21, 2020, 9:15 a.m. OK Mono C# TESTS 9 93 11776000
89862285 azukun C Aug. 14, 2020, 10:35 a.m. OK Mono C# TESTS 9 108 5427200
91346542 fgwiebfaoish C Aug. 30, 2020, 1:38 p.m. OK Mono C# TESTS 9 108 13312000
90500363 treasuryonly C Aug. 21, 2020, 12:22 a.m. OK Mono C# TESTS 9 124 4505600
89504703 EmK C Aug. 10, 2020, 11:28 a.m. OK Mono C# TESTS 9 139 113868800
89168982 vjudge1 C Aug. 7, 2020, 3:13 a.m. OK MS C++ 2017 TESTS 9 61 4198400
88751292 John320 C Aug. 2, 2020, 5:26 p.m. OK MS C++ 2017 TESTS 9 61 4403200
88791792 Mad112233 C Aug. 3, 2020, 10:57 a.m. OK MS C++ 2017 TESTS 9 62 4300800
89359984 ustaritz C Aug. 8, 2020, 7:34 p.m. OK MS C++ 2017 TESTS 9 62 4403200
88901767 deltameth C Aug. 4, 2020, 8:16 p.m. OK MS C++ 2017 TESTS 9 62 8396800
88785765 anirudhgupta0510 C Aug. 3, 2020, 9:10 a.m. OK MS C++ 2017 TESTS 9 78 4403200
88763504 getN1ght C Aug. 2, 2020, 11:25 p.m. OK MS C++ 2017 TESTS 9 78 4505600
89160372 icecap360 C Aug. 6, 2020, 10:04 p.m. OK MS C++ 2017 TESTS 9 78 5939200
89367093 cai.rachael C Aug. 9, 2020, 12:17 a.m. OK MS C++ 2017 TESTS 9 109 4403200
88681518 kurzwe6er C Aug. 1, 2020, 4:41 p.m. OK MS C++ 2017 TESTS 9 124 4300800
91329042 tutai C Aug. 30, 2020, 8:36 a.m. OK Node.js TESTS 9 1606 14336000
89129089 yumtam C Aug. 6, 2020, 2:02 p.m. OK PyPy 2 TESTS 9 264 25395200
88927744 tycyd C Aug. 5, 2020, 8:12 a.m. OK PyPy 3 TESTS 9 217 23654400
91602600 vjudge2 C Sept. 1, 2020, 11:21 p.m. OK PyPy 3 TESTS 9 296 5427200
91602585 Esteb37 C Sept. 1, 2020, 11:20 p.m. OK PyPy 3 TESTS 9 311 5427200
89198762 a5828167 C Aug. 7, 2020, 11:13 a.m. OK PyPy 3 TESTS 9 311 29081600
89374242 a5828167 C Aug. 9, 2020, 5:06 a.m. OK PyPy 3 TESTS 9 327 29081600
90895272 bcc0830 C Aug. 25, 2020, 11:38 a.m. OK PyPy 3 TESTS 9 342 7782400
89383148 vrittikabagadia C Aug. 9, 2020, 7:56 a.m. OK PyPy 3 TESTS 9 342 28262400
88690073 SakshamK6 C Aug. 1, 2020, 7:29 p.m. OK PyPy 3 TESTS 9 343 31641600
91159226 kimshy9805 C Aug. 27, 2020, 6:05 p.m. OK PyPy 3 TESTS 9 358 5734400
91573090 vjudge2 C Sept. 1, 2020, 2:17 p.m. OK PyPy 3 TESTS 9 358 7782400
88778107 mmhaxor1 C Aug. 3, 2020, 7:01 a.m. OK Python 3 TESTS 9 841 7475200
89514445 nowrin_brown C Aug. 10, 2020, 1:44 p.m. OK Python 3 TESTS 9 857 7577600
89516063 nowrin_brown C Aug. 10, 2020, 2:03 p.m. OK Python 3 TESTS 9 873 7475200
88936101 sound234 C Aug. 5, 2020, 10:21 a.m. OK Python 3 TESTS 9 888 7475200
89648597 arijeetghosh251 C Aug. 12, 2020, 12:05 p.m. OK Python 3 TESTS 9 904 7475200
88750570 fayezazeyan C Aug. 2, 2020, 5:14 p.m. OK Python 3 TESTS 9 919 7475200
88924396 janardhan_6635 C Aug. 5, 2020, 7:18 a.m. OK Python 3 TESTS 9 935 7577600
88924305 janardhan_6635 C Aug. 5, 2020, 7:16 a.m. OK Python 3 TESTS 9 951 7577600
90405563 prmangal C Aug. 19, 2020, 4:14 p.m. OK Python 3 TESTS 9 1044 1024000
91250973 Tony_Stark3000 C Aug. 29, 2020, 2:11 a.m. OK Python 3 TESTS 9 1060 716800
88741568 SteelRaven C Aug. 2, 2020, 3:10 p.m. OK Rust TESTS 9 46 4812800
89832290 LeoRiether C Aug. 14, 2020, 12:30 a.m. OK Rust TESTS 9 62 1024000
90679114 n1tz53 C Aug. 22, 2020, 10:32 a.m. OK Rust TESTS 9 78 4608000
88640489 Strorkis C Aug. 1, 2020, 6:56 a.m. OK Rust TESTS 9 78 5734400

remove filters

Back to search problems