Codeforces Round 691 (Div. 1)

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
1458 Codeforces Round 691 (Div. 1) FINISHED False 7200 128809463 Dec. 19, 2020, 9:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1192 ) D Flip and Reverse PROGRAMMING graphs greedy

B"You are given a string s of 0's and 1's. You are allowed to perform the following operation: For example, consider s = 00111011, and the following operation: Find the lexicographically smallest string that can be obtained from s after zero or more operations. The first line contains a single integer T ( 1 <= q T <= q 5 cdot 10^5 ) -- the number of test cases. Each of the following T lines contains a single non-empty string -- the input string s for the respective test case. All strings consist of characters 0 and 1, and their total length does not exceed 5 cdot 10^5 . For each test case, on a separate line print the lexicographically smallest string that can be obtained from s after zero or more operations. In the first test case a single operation should be applied to the entire string. In the second test case two operations are needed: 0111001, 0110110. In the third test case the string stays the same after any operation. "...

Tutorials

Codeforces Round #691 Editorial (finished)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
101750551 142857 D Dec. 19, 2020, 10:49 a.m. OK GNU C++11 TESTS 28 78 4505600
101817902 -sakuro D Dec. 20, 2020, 5:03 a.m. OK GNU C++11 TESTS 28 109 8499200
101818810 zhoukangyang D Dec. 20, 2020, 5:22 a.m. OK GNU C++11 TESTS 28 124 4505600
101812149 gmh77 D Dec. 20, 2020, 1:58 a.m. OK GNU C++11 TESTS 28 156 24473600
101783933 psycho437 D Dec. 19, 2020, 3:47 p.m. OK GNU C++11 TESTS 28 295 4505600
101774248 lqs2015 D Dec. 19, 2020, 1:15 p.m. OK GNU C++11 TESTS 28 842 49561600
101807690 duality D Dec. 19, 2020, 10:27 p.m. OK GNU C++11 TESTS 28 904 16588800
101785540 HIR180 D Dec. 19, 2020, 4:06 p.m. OK GNU C++11 TESTS 28 982 24985600
101812582 luogu_bot5 D Dec. 20, 2020, 2:17 a.m. OK GNU C++11 TESTS 28 1013 5939200
101819386 MrGary D Dec. 20, 2020, 5:33 a.m. OK GNU C++11 TESTS 28 1013 10035200
101747447 DmitryGrigorev D Dec. 19, 2020, 10:40 a.m. OK GNU C++14 TESTS 28 77 9113600
101770029 onjo D Dec. 19, 2020, 12:31 p.m. OK GNU C++14 TESTS 28 124 9011200
101769442 onjo D Dec. 19, 2020, 12:25 p.m. OK GNU C++14 TESTS 28 139 9011200
101754071 caoyue D Dec. 19, 2020, 10:59 a.m. OK GNU C++14 TESTS 28 156 4505600
101775873 djq_fpc D Dec. 19, 2020, 1:34 p.m. OK GNU C++14 TESTS 28 156 11571200
101812853 Nero D Dec. 20, 2020, 2:27 a.m. OK GNU C++14 TESTS 28 187 13107200
101776972 zhouzhendong D Dec. 19, 2020, 1:51 p.m. OK GNU C++14 TESTS 28 421 18022400
101813950 Seyaua D Dec. 20, 2020, 3:09 a.m. OK GNU C++14 TESTS 28 1310 10547200
101813865 Seyaua D Dec. 20, 2020, 3:06 a.m. OK GNU C++14 TESTS 28 1341 10547200
101813829 Seyaua D Dec. 20, 2020, 3:05 a.m. OK GNU C++14 TESTS 28 1341 10547200
101754872 maroonrk D Dec. 19, 2020, 11:02 a.m. OK GNU C++17 TESTS 28 108 6553600
101780125 Timur_Sitdikov D Dec. 19, 2020, 2:47 p.m. OK GNU C++17 TESTS 28 140 5017600
101757530 catupper D Dec. 19, 2020, 11:10 a.m. OK GNU C++17 TESTS 28 156 7168000
101770326 tfg D Dec. 19, 2020, 12:34 p.m. OK GNU C++17 TESTS 28 171 9113600
101768544 Radewoosh D Dec. 19, 2020, 12:17 p.m. OK GNU C++17 TESTS 28 171 52838400
101738214 izone D Dec. 19, 2020, 10:14 a.m. OK GNU C++17 TESTS 28 187 14950400
101771743 Sevlll D Dec. 19, 2020, 12:48 p.m. OK GNU C++17 TESTS 28 280 40140800
101764759 TeaPot D Dec. 19, 2020, 11:31 a.m. OK GNU C++17 TESTS 28 280 46489600
101747159 antontrygubO_o D Dec. 19, 2020, 10:39 a.m. OK GNU C++17 TESTS 28 311 45056000
101774462 2005lz D Dec. 19, 2020, 1:18 p.m. OK GNU C++17 TESTS 28 311 76902400
101781919 ecnerwala D Dec. 19, 2020, 3:17 p.m. OK GNU C++17 (64) TESTS 28 62 5529600
101801094 Ari D Dec. 19, 2020, 7:37 p.m. OK GNU C++17 (64) TESTS 28 62 13107200
101742255 tourist D Dec. 19, 2020, 10:25 a.m. OK GNU C++17 (64) TESTS 28 93 5120000
101772176 GRT_2018 D Dec. 19, 2020, 12:53 p.m. OK GNU C++17 (64) TESTS 28 93 15564800
101737535 yosupo D Dec. 19, 2020, 10:13 a.m. OK GNU C++17 (64) TESTS 28 124 7577600
101795445 Geothermal D Dec. 19, 2020, 6:07 p.m. OK GNU C++17 (64) TESTS 28 124 12697600
101747468 jiangly D Dec. 19, 2020, 10:40 a.m. OK GNU C++17 (64) TESTS 28 155 15052800
101812976 yuyue D Dec. 20, 2020, 2:32 a.m. OK GNU C++17 (64) TESTS 28 202 53043200
101812859 yuyue D Dec. 20, 2020, 2:28 a.m. OK GNU C++17 (64) TESTS 28 233 53043200
101733305 Um_nik D Dec. 19, 2020, 10:02 a.m. OK GNU C++17 (64) TESTS 28 280 9011200
101768751 insert_cool_handle D Dec. 19, 2020, 12:19 p.m. OK Java 11 TESTS 28 249 3481600
101768583 dalt D Dec. 19, 2020, 12:18 p.m. OK Java 8 TESTS 28 311 5529600
101811229 JSoap D Dec. 20, 2020, 1:21 a.m. OK Kotlin TESTS 28 421 17305600
101813874 Seyaua D Dec. 20, 2020, 3:06 a.m. OK MS C++ 2017 TESTS 28 1606 9932800

remove filters

Back to search problems