Educational Codeforces Round 96 (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
1430 Educational Codeforces Round 96 (Rated for Div. 2) FINISHED False 7200 134772863 Oct. 11, 2020, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8885 ) D String Deletion PROGRAMMING greedy two pointers

B"You have a string s consisting of n characters. Each character is either 0 or 1. You can perform operations on the string. Each operation consists of two steps: Note that both steps are mandatory in each operation, and their order cannot be changed. For example, if you have a string s = 111010, the first operation can be one of the following: You finish performing operations when the string s becomes empty. What is the maximum number of operations you can perform? The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. The first line of each test case contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the length of the string s . The second line contains string s of n characters. Each character is either 0 or 1. It's guaranteed that the total sum of n over test cases doesn't exceed 2 cdot 10^5 . For each test case, print a single integer -- the maximum number of operations you can perform. In the first test case, you can, for example, select i = 2 and get string 010 after the first operation. After that, you can select i = 3 and get string 1. Finally, you can only select i = 1 and get empty string. "...

Tutorials

Educational Codeforces Round 96 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
95304311 AlpacanChicken D Oct. 12, 2020, 12:01 a.m. OK GNU C11 TESTS 12 46 1638400
95262210 Edd1e0_0 D Oct. 11, 2020, 12:45 p.m. OK GNU C11 TESTS 12 1777 819200
95247927 Edd1e0_0 D Oct. 11, 2020, 10:55 a.m. OK GNU C11 TESTS 12 1777 819200
95267653 World_Best D Oct. 11, 2020, 1:50 p.m. OK GNU C++11 TESTS 12 15 204800
95306930 fr200110217102 D Oct. 12, 2020, 2:01 a.m. OK GNU C++11 TESTS 12 15 409600
95262476 chen_03 D Oct. 11, 2020, 12:48 p.m. OK GNU C++11 TESTS 12 15 819200
95265731 loenvom D Oct. 11, 2020, 1:27 p.m. OK GNU C++11 TESTS 12 15 819200
95257131 joke1 D Oct. 11, 2020, 11:47 a.m. OK GNU C++11 TESTS 12 15 1024000
95304610 Orange_JuiCE D Oct. 12, 2020, 12:18 a.m. OK GNU C++11 TESTS 12 15 1024000
95270619 the_compiler D Oct. 11, 2020, 2:28 p.m. OK GNU C++11 TESTS 12 15 2355200
95307361 ddh D Oct. 12, 2020, 2:18 a.m. OK GNU C++11 TESTS 12 15 2560000
95305474 zhujunchao D Oct. 12, 2020, 1:02 a.m. OK GNU C++11 TESTS 12 30 204800
95261468 Lu_Anlai D Oct. 11, 2020, 12:36 p.m. OK GNU C++11 TESTS 12 30 204800
95314350 krunal2209 D Oct. 12, 2020, 5:23 a.m. OK GNU C++14 TESTS 12 15 4608000
95305513 sahuash017 D Oct. 12, 2020, 1:04 a.m. OK GNU C++14 TESTS 12 30 512000
95269852 AleXman111 D Oct. 11, 2020, 2:18 p.m. OK GNU C++14 TESTS 12 30 2560000
95287564 Luka D Oct. 11, 2020, 5:05 p.m. OK GNU C++14 TESTS 12 30 2560000
95290955 SlowDecay D Oct. 11, 2020, 5:58 p.m. OK GNU C++14 TESTS 12 30 2560000
95301474 zakwan_hasan D Oct. 11, 2020, 9:49 p.m. OK GNU C++14 TESTS 12 30 2560000
95254930 dragonfire100 D Oct. 11, 2020, 11:26 a.m. OK GNU C++14 TESTS 12 30 2969600
95247414 Tadas D Oct. 11, 2020, 10:54 a.m. OK GNU C++14 TESTS 12 30 3276800
95264928 ansh_bafna D Oct. 11, 2020, 1:17 p.m. OK GNU C++14 TESTS 12 30 3584000
95256550 shiva2601 D Oct. 11, 2020, 11:41 a.m. OK GNU C++14 TESTS 12 30 4096000
95269191 CrazyCircle D Oct. 11, 2020, 2:09 p.m. OK GNU C++17 TESTS 12 15 2560000
95259146 rushabh7 D Oct. 11, 2020, 12:10 p.m. OK GNU C++17 TESTS 12 15 2560000
95258402 jhdonghj112 D Oct. 11, 2020, 12:01 p.m. OK GNU C++17 TESTS 12 30 204800
95310176 timothybagas D Oct. 12, 2020, 3:39 a.m. OK GNU C++17 TESTS 12 30 512000
95291862 Is_This_Kirito D Oct. 11, 2020, 6:12 p.m. OK GNU C++17 TESTS 12 30 716800
95257082 KarolloraK D Oct. 11, 2020, 11:47 a.m. OK GNU C++17 TESTS 12 30 819200
95251677 Tanvir021 D Oct. 11, 2020, 11:04 a.m. OK GNU C++17 TESTS 12 30 1331200
95305736 tdpencil D Oct. 12, 2020, 1:14 a.m. OK GNU C++17 TESTS 12 30 2150400
95305694 coderstg_24 D Oct. 12, 2020, 1:12 a.m. OK GNU C++17 TESTS 12 30 2150400
95312634 GRandle D Oct. 12, 2020, 4:46 a.m. OK GNU C++17 TESTS 12 30 2560000
95295612 Anachor D Oct. 11, 2020, 7:19 p.m. OK GNU C++17 (64) TESTS 12 15 2457600
95265760 rath772k D Oct. 11, 2020, 1:27 p.m. OK GNU C++17 (64) TESTS 12 15 2457600
95250710 kira201 D Oct. 11, 2020, 11:02 a.m. OK GNU C++17 (64) TESTS 12 15 2560000
95301156 RandomNumber D Oct. 11, 2020, 9:39 p.m. OK GNU C++17 (64) TESTS 12 15 3993600
95306156 QAQAutoMaton D Oct. 12, 2020, 1:30 a.m. OK GNU C++17 (64) TESTS 12 15 4403200
95260721 Bondo D Oct. 11, 2020, 12:28 p.m. OK GNU C++17 (64) TESTS 12 15 4608000
95276626 galen_colin D Oct. 11, 2020, 2:56 p.m. OK GNU C++17 (64) TESTS 12 15 28672000
95296838 Vaibhav_86 D Oct. 11, 2020, 7:46 p.m. OK GNU C++17 (64) TESTS 12 30 512000
95271082 Alex_Lorintz D Oct. 11, 2020, 2:34 p.m. OK GNU C++17 (64) TESTS 12 30 512000
95270157 mintCHILL D Oct. 11, 2020, 2:22 p.m. OK GNU C++17 (64) TESTS 12 30 512000
95254754 saikaushik D Oct. 11, 2020, 11:25 a.m. OK Java 11 TESTS 12 171 0
95300011 Ste D Oct. 11, 2020, 9:01 p.m. OK Java 11 TESTS 12 186 0
95288973 vaishnav_firebolt D Oct. 11, 2020, 5:27 p.m. OK Java 11 TESTS 12 186 0
95278790 yuruiyin D Oct. 11, 2020, 3:24 p.m. OK Java 11 TESTS 12 186 0
95283165 aimeemontero D Oct. 11, 2020, 4:20 p.m. OK Java 11 TESTS 12 187 0
95267377 wizard98 D Oct. 11, 2020, 1:46 p.m. OK Java 11 TESTS 12 187 0
95247226 narushima D Oct. 11, 2020, 10:53 a.m. OK Java 11 TESTS 12 187 0
95258307 akman10 D Oct. 11, 2020, noon OK Java 11 TESTS 12 202 0
95293545 _lucho D Oct. 11, 2020, 6:41 p.m. OK Java 11 TESTS 12 202 0
95286122 Monkey_de_Luffy D Oct. 11, 2020, 4:58 p.m. OK Java 11 TESTS 12 217 0
95264250 BNL D Oct. 11, 2020, 1:10 p.m. OK Java 8 TESTS 12 108 0
95301396 antkhorin D Oct. 11, 2020, 9:46 p.m. OK Java 8 TESTS 12 109 0
95290968 mr_coder1 D Oct. 11, 2020, 5:58 p.m. OK Java 8 TESTS 12 109 0
95287733 kalzor D Oct. 11, 2020, 5:07 p.m. OK Java 8 TESTS 12 109 0
95282248 2020akadaver D Oct. 11, 2020, 4:09 p.m. OK Java 8 TESTS 12 109 0
95278201 honeysingh18 D Oct. 11, 2020, 3:16 p.m. OK Java 8 TESTS 12 109 0
95253671 shojin_pro D Oct. 11, 2020, 11:16 a.m. OK Java 8 TESTS 12 109 0
95297895 Kimo_Fathy D Oct. 11, 2020, 8:09 p.m. OK Java 8 TESTS 12 124 0
95310538 overACer D Oct. 12, 2020, 3:50 a.m. OK Java 8 TESTS 12 124 0
95290780 flyman3046 D Oct. 11, 2020, 5:55 p.m. OK Java 8 TESTS 12 124 0
95248721 sergmel D Oct. 11, 2020, 10:57 a.m. OK Kotlin TESTS 12 155 0
95289222 tomasz.masternak D Oct. 11, 2020, 5:30 p.m. OK Mono C# TESTS 12 77 6553600
95251668 Solt D Oct. 11, 2020, 11:04 a.m. OK MS C++ 2017 TESTS 12 31 614400
95279229 ustaritz D Oct. 11, 2020, 3:30 p.m. OK MS C++ 2017 TESTS 12 31 1945600
95295450 JackieLee D Oct. 11, 2020, 7:16 p.m. OK MS C++ 2017 TESTS 12 31 2048000
95259544 dominotim D Oct. 11, 2020, 12:14 p.m. OK MS C++ 2017 TESTS 12 31 2764800
95267704 shebao D Oct. 11, 2020, 1:51 p.m. OK MS C++ 2017 TESTS 12 31 3379200
95267424 shebao D Oct. 11, 2020, 1:47 p.m. OK MS C++ 2017 TESTS 12 31 3379200
95248058 oneskovic D Oct. 11, 2020, 10:56 a.m. OK MS C++ 2017 TESTS 12 46 5120000
95299426 realnimish D Oct. 11, 2020, 8:46 p.m. OK PyPy 2 TESTS 12 155 10035200
95313342 shehebe D Oct. 12, 2020, 5:03 a.m. OK PyPy 2 TESTS 12 202 6451200
95300749 june_waves D Oct. 11, 2020, 9:25 p.m. OK PyPy 3 TESTS 12 155 5529600
95293443 Bovniova D Oct. 11, 2020, 6:39 p.m. OK PyPy 3 TESTS 12 156 9830400
95295357 Stephan D Oct. 11, 2020, 7:15 p.m. OK PyPy 3 TESTS 12 171 2764800
95310139 moriarty1992 D Oct. 12, 2020, 3:38 a.m. OK PyPy 3 TESTS 12 171 6041600
95293331 learner7321 D Oct. 11, 2020, 6:37 p.m. OK PyPy 3 TESTS 12 202 5632000
95277404 giantweekbold D Oct. 11, 2020, 3:06 p.m. OK PyPy 3 TESTS 12 202 6553600
95249313 Gegege337 D Oct. 11, 2020, 10:59 a.m. OK PyPy 3 TESTS 12 202 6553600
95284743 reddevil100 D Oct. 11, 2020, 4:40 p.m. OK PyPy 3 TESTS 12 202 9523200
95284558 reddevil100 D Oct. 11, 2020, 4:38 p.m. OK PyPy 3 TESTS 12 202 9523200
95312234 chinmaym749 D Oct. 12, 2020, 4:36 a.m. OK PyPy 3 TESTS 12 202 13926400
95290701 ComptineDunAutreEte D Oct. 11, 2020, 5:53 p.m. OK Python 2 TESTS 12 265 5529600
95260489 arpit0891 D Oct. 11, 2020, 12:25 p.m. OK Python 3 TESTS 12 202 2560000
95248249 Ravi_ISI D Oct. 11, 2020, 10:56 a.m. OK Python 3 TESTS 12 233 2252800
95269130 sh1194 D Oct. 11, 2020, 2:08 p.m. OK Python 3 TESTS 12 265 3481600
95252701 std_aboulkacem D Oct. 11, 2020, 11:09 a.m. OK Python 3 TESTS 12 280 2867200
95251054 devshaurya1001 D Oct. 11, 2020, 11:03 a.m. OK Python 3 TESTS 12 295 2560000
95253276 Samyk D Oct. 11, 2020, 11:13 a.m. OK Python 3 TESTS 12 343 2867200
95289880 CODEBREAKER_Reii D Oct. 11, 2020, 5:40 p.m. OK Python 3 TESTS 12 374 2048000
95279939 sul3 D Oct. 11, 2020, 3:39 p.m. OK Python 3 TESTS 12 405 2969600
95280899 deadguy D Oct. 11, 2020, 3:51 p.m. OK Python 3 TESTS 12 468 13824000
95251326 checkingagain D Oct. 11, 2020, 11:04 a.m. OK Python 3 TESTS 12 1154 2969600

remove filters

Back to search problems