Educational Codeforces Round 128 (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
1680 Educational Codeforces Round 128 (Rated for Div. 2) FINISHED False 7200 79370699 May 13, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10018 ) C Binary String PROGRAMMING binary search greedy two pointers

B'You are given a string s consisting of characters 0 and/or 1. You have to remove several (possibly zero) characters from the beginning of the string, and then several (possibly zero) characters from the end of the string. The string may become empty after the removals. The cost of the removal is the maximum of the following two values: What is the minimum cost of removal you can achieve? 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 ), consisting of characters 0 and/or 1. The total length of strings s in all test cases does not exceed 2 cdot 10^5 . For each test case, print one integer -- the minimum cost of removal you can achieve. Consider the test cases of the example: '...

Tutorials

102852

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
157067721 saratcsss C May 13, 2022, 4:17 p.m. OK C# 8 TESTS 20 124 2867200
157107359 allegrogiken C May 14, 2022, 2:53 a.m. OK D TESTS 20 15 6144000
157106894 allegrogiken C May 14, 2022, 2:43 a.m. OK D TESTS 20 31 6144000
157086896 NenadDapic C May 13, 2022, 6:36 p.m. OK FPC TESTS 20 46 921600
157085856 NenadDapic C May 13, 2022, 6:23 p.m. OK FPC TESTS 20 46 1126400
157112483 AkaiLemon C May 14, 2022, 4:34 a.m. OK GNU C++14 TESTS 20 15 204800
157111739 MichaelLeeCN C May 14, 2022, 4:21 a.m. OK GNU C++14 TESTS 20 15 204800
157103142 Luminolic_Black C May 14, 2022, 1:04 a.m. OK GNU C++14 TESTS 20 15 204800
157116132 SrinivasTeja C May 14, 2022, 5:39 a.m. OK GNU C++14 TESTS 20 15 512000
157116039 SrinivasTeja C May 14, 2022, 5:37 a.m. OK GNU C++14 TESTS 20 15 512000
157114137 the_sky_bug C May 14, 2022, 5:06 a.m. OK GNU C++14 TESTS 20 15 512000
157113196 cmw0107 C May 14, 2022, 4:48 a.m. OK GNU C++14 TESTS 20 15 512000
157086869 pk_69 C May 13, 2022, 6:36 p.m. OK GNU C++14 TESTS 20 15 512000
157085270 dhruvrathi04 C May 13, 2022, 6:16 p.m. OK GNU C++14 TESTS 20 15 512000
157085015 pranshukas C May 13, 2022, 6:13 p.m. OK GNU C++14 TESTS 20 15 512000

remove filters

Back to search problems