Codeforces Round 646 (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
1363 Codeforces Round 646 (Div. 2) FINISHED False 7200 140887499 May 31, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23765 ) B Subsequence Hate PROGRAMMING implementation strings 1400

B'Shubham has a binary string s . A binary string is a string containing only characters "0" and "1". He can perform the following operation on the string any amount of times: A string is called good if it does not contain "010" or "101" as a subsequence -- for instance, "1001" contains "101" as a subsequence, hence it is not a good string, while "1000" doesn 't contain neither "010" nor "101" as subsequences, so it is a good string. What is the minimum number of operations he will have to perform, so that the string becomes good? It can be shown that with these operations we can make any string good. A string a is a subsequence of a string b if a can be obtained from b by deletion of several (possibly, zero or all) characters. The first line of the input contains a single integer t (1 <= t <= 100) -- the number of test cases. Each of the next t lines contains a binary string s (1 <= |s| <= 1000) . For every string, output the minimum number of operations required to make it good. In test cases 1 , 2 , 5 , 6 no operations are required since they are already good strings. For the 3 rd test case: "001" can be achieved by flipping the first character -- and is one of the possible ways to get a good string. For the 4 th test case: "000" can be achieved by flipping the second character -- and is one of the possible ways to get a good string. For the 7 th test case: "000000" can be achieved by flipping the third and fourth characters -- and is one of the possible ways to get a good string. '...

Tutorials

78202

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
82167366 Pk000 B June 1, 2020, 12:26 a.m. OK Clang++17 Diagnostics TESTS 31 77 5222400 1400
82364999 ijk13 B June 3, 2020, 6:07 a.m. OK Clang++17 Diagnostics TESTS 31 77 11571200 1400
82477734 Teju5937 B June 4, 2020, 11:35 a.m. OK GNU C11 TESTS 31 30 0 1400
82156006 Tanzim_bn B May 31, 2020, 7:19 p.m. OK GNU C11 TESTS 31 31 0 1400
82242020 ja1467 B June 1, 2020, 5:17 p.m. OK GNU C11 TESTS 31 31 0 1400
82372157 dongri B June 3, 2020, 7:38 a.m. OK GNU C11 TESTS 31 31 0 1400
82398056 Akash_Roy B June 3, 2020, 12:54 p.m. OK GNU C11 TESTS 31 31 0 1400
82347942 eugalt B June 2, 2020, 10:15 p.m. OK GNU C11 TESTS 31 31 0 1400
82347442 eugalt B June 2, 2020, 9:54 p.m. OK GNU C11 TESTS 31 31 0 1400
82334540 rohanchandra B June 2, 2020, 5:44 p.m. OK GNU C11 TESTS 31 31 0 1400
82203928 lwd-haki B June 1, 2020, 10:13 a.m. OK GNU C11 TESTS 31 31 204800 1400
82349349 eugalt B June 2, 2020, 11:24 p.m. OK GNU C11 TESTS 31 31 204800 1400
82190187 He_Ren B June 1, 2020, 7:37 a.m. OK GNU C++11 TESTS 31 15 0 1400
82378575 froggyzhang B June 3, 2020, 8:53 a.m. OK GNU C++11 TESTS 31 30 0 1400
82347980 LogitechSellout B June 2, 2020, 10:16 p.m. OK GNU C++11 TESTS 31 30 0 1400
82318229 catalystgma B June 2, 2020, 2:37 p.m. OK GNU C++11 TESTS 31 30 0 1400
82184542 syy123456 B June 1, 2020, 6:31 a.m. OK GNU C++11 TESTS 31 30 0 1400
82184394 jy1lnz B June 1, 2020, 6:29 a.m. OK GNU C++11 TESTS 31 30 0 1400
82169280 ashishjaiswal1712 B June 1, 2020, 1:40 a.m. OK GNU C++11 TESTS 31 30 0 1400
82158028 Sushmit B May 31, 2020, 7:50 p.m. OK GNU C++11 TESTS 31 30 0 1400
82399353 gjwhhhh B June 3, 2020, 1:12 p.m. OK GNU C++11 TESTS 31 30 0 1400
82365535 Hamsterw B June 3, 2020, 6:14 a.m. OK GNU C++11 TESTS 31 30 0 1400
82376311 samar7d B June 3, 2020, 8:27 a.m. OK GNU C++14 TESTS 31 30 0 1400
82211733 kushagra3010 B June 1, 2020, 11:40 a.m. OK GNU C++14 TESTS 31 30 0 1400
82160604 saikat_7 B May 31, 2020, 8:38 p.m. OK GNU C++14 TESTS 31 30 0 1400
82154482 Tomukaro B May 31, 2020, 6:59 p.m. OK GNU C++14 TESTS 31 30 204800 1400
82189380 Wolfhunter B June 1, 2020, 7:27 a.m. OK GNU C++14 TESTS 31 30 307200 1400
82481386 chinipardhi2804 B June 4, 2020, 12:23 p.m. OK GNU C++14 TESTS 31 31 0 1400
82471201 ateev_mishra7 B June 4, 2020, 10:10 a.m. OK GNU C++14 TESTS 31 31 0 1400
82465904 anjali5q B June 4, 2020, 9:02 a.m. OK GNU C++14 TESTS 31 31 0 1400
82468830 dyuti2003 B June 4, 2020, 9:38 a.m. OK GNU C++14 TESTS 31 31 0 1400
82471683 mandeep88 B June 4, 2020, 10:16 a.m. OK GNU C++14 TESTS 31 31 0 1400
82433073 splash365 B June 3, 2020, 8:25 p.m. OK GNU C++17 TESTS 31 30 0 1400
82407553 avibhar B June 3, 2020, 2:44 p.m. OK GNU C++17 TESTS 31 30 0 1400
82202143 GioChkhaidze B June 1, 2020, 9:52 a.m. OK GNU C++17 TESTS 31 30 204800 1400
82158441 Niloufer B May 31, 2020, 7:57 p.m. OK GNU C++17 TESTS 31 30 307200 1400
82193921 Aman98 B June 1, 2020, 8:19 a.m. OK GNU C++17 TESTS 31 30 307200 1400
82194777 xiaobuxie B June 1, 2020, 8:29 a.m. OK GNU C++17 TESTS 31 30 307200 1400
82251896 bgd_gn B June 1, 2020, 7:42 p.m. OK GNU C++17 TESTS 31 30 307200 1400
82471349 Shubham-Rana B June 4, 2020, 10:12 a.m. OK GNU C++17 TESTS 31 31 0 1400
82474392 paradox_123 B June 4, 2020, 10:53 a.m. OK GNU C++17 TESTS 31 31 0 1400
82481883 AkhilSaini B June 4, 2020, 12:29 p.m. OK GNU C++17 TESTS 31 31 0 1400
82201813 6553368 B June 1, 2020, 9:48 a.m. OK GNU C++17 (64) TESTS 31 15 0 1400
82383997 aeiou1 B June 3, 2020, 10:03 a.m. OK GNU C++17 (64) TESTS 31 30 0 1400
82261223 menna_tallah B June 2, 2020, 12:57 a.m. OK GNU C++17 (64) TESTS 31 30 0 1400
82215376 gerasikov.fml31 B June 1, 2020, 12:21 p.m. OK GNU C++17 (64) TESTS 31 30 0 1400
82162707 Hamoudi B May 31, 2020, 9:27 p.m. OK GNU C++17 (64) TESTS 31 30 0 1400
82162318 shahil_005 B May 31, 2020, 9:18 p.m. OK GNU C++17 (64) TESTS 31 30 0 1400
82153219 trieharder B May 31, 2020, 6:43 p.m. OK GNU C++17 (64) TESTS 31 30 0 1400
82248429 CoderPenguin B June 1, 2020, 6:43 p.m. OK GNU C++17 (64) TESTS 31 30 102400 1400
82475821 Dragon_Emperor B June 4, 2020, 11:11 a.m. OK GNU C++17 (64) TESTS 31 31 0 1400
82448761 Dragon_Emperor B June 4, 2020, 5:06 a.m. OK GNU C++17 (64) TESTS 31 31 0 1400
82192253 synapse B June 1, 2020, 8:01 a.m. OK Go TESTS 31 46 307200 1400
82146945 nsaeki B May 31, 2020, 5:43 p.m. OK Go TESTS 31 233 0 1400
82165656 clyring B May 31, 2020, 11:16 p.m. OK Haskell TESTS 31 31 102400 1400
82442824 tasnimislam1999 B June 4, 2020, 2:30 a.m. OK Haskell TESTS 31 46 102400 1400
82348314 jakejase2 B June 2, 2020, 10:31 p.m. OK Java 11 TESTS 31 171 0 1400
82362363 UrvashiGupta B June 3, 2020, 5:27 a.m. OK Java 11 TESTS 31 171 0 1400
82222261 Witless_Deer B June 1, 2020, 1:42 p.m. OK Java 11 TESTS 31 171 0 1400
82186069 zhupeijun B June 1, 2020, 6:50 a.m. OK Java 11 TESTS 31 171 0 1400
82173251 rohanxyzg B June 1, 2020, 3:23 a.m. OK Java 11 TESTS 31 171 0 1400
82169850 shivamnarware B June 1, 2020, 1:58 a.m. OK Java 11 TESTS 31 171 0 1400
82425191 vickyvanshaj B June 3, 2020, 6:07 p.m. OK Java 11 TESTS 31 186 0 1400
82368354 urjarock B June 3, 2020, 6:51 a.m. OK Java 11 TESTS 31 186 0 1400
82277249 rish1124 B June 2, 2020, 6:41 a.m. OK Java 11 TESTS 31 186 0 1400
82269035 Ahmed_Hosssam B June 2, 2020, 4:36 a.m. OK Java 11 TESTS 31 186 0 1400
82221519 nandit B June 1, 2020, 1:33 p.m. OK Java 8 TESTS 31 108 0 1400
82436219 Agnimandur B June 3, 2020, 10:01 p.m. OK Java 8 TESTS 31 108 0 1400
82189582 ra20r B June 1, 2020, 7:30 a.m. OK Java 8 TESTS 31 108 0 1400
82219974 adityakaushik99 B June 1, 2020, 1:16 p.m. OK Java 8 TESTS 31 109 0 1400
82208313 suraj99p B June 1, 2020, 11:03 a.m. OK Java 8 TESTS 31 109 0 1400
82430468 noobie_code B June 3, 2020, 7:33 p.m. OK Java 8 TESTS 31 109 0 1400
82343915 sunnycarlos B June 2, 2020, 8:19 p.m. OK Java 8 TESTS 31 109 0 1400
82317371 O_E B June 2, 2020, 2:28 p.m. OK Java 8 TESTS 31 109 0 1400
82244896 DarkSiren B June 1, 2020, 5:54 p.m. OK Java 8 TESTS 31 109 0 1400
82243730 anandb B June 1, 2020, 5:40 p.m. OK Java 8 TESTS 31 109 0 1400
82409461 Cyber.1 B June 3, 2020, 3:04 p.m. OK Kotlin TESTS 31 124 0 1400
82395610 PugachAG B June 3, 2020, 12:25 p.m. OK Kotlin TESTS 31 124 0 1400
82166233 Spheniscine B May 31, 2020, 11:45 p.m. OK Kotlin TESTS 31 124 0 1400
82148162 Tlatoani B May 31, 2020, 5:52 p.m. OK Kotlin TESTS 31 124 0 1400
82384198 mishagam B June 3, 2020, 10:05 a.m. OK Kotlin TESTS 31 140 0 1400
82403805 whiter4bbit B June 3, 2020, 2:05 p.m. OK Kotlin TESTS 31 155 0 1400
82168412 wuchaojie925 B June 1, 2020, 1:11 a.m. OK Kotlin TESTS 31 202 1126400 1400
82147569 peterc B May 31, 2020, 5:48 p.m. OK Mono C# TESTS 31 62 1228800 1400
82202551 TRR B June 1, 2020, 9:57 a.m. OK Mono C# TESTS 31 77 409600 1400
82225391 ansergeyg B June 1, 2020, 2:14 p.m. OK Mono C# TESTS 31 77 614400 1400
82302543 _Trung_Nguyen B June 2, 2020, 11:43 a.m. OK Mono C# TESTS 31 77 5427200 1400
82288991 maddenvvs B June 2, 2020, 8:58 a.m. OK Mono C# TESTS 31 171 2150400 1400
82450414 vjudge4 B June 4, 2020, 5:39 a.m. OK MS C++ TESTS 31 31 0 1400
82290340 vjudge4 B June 2, 2020, 9:14 a.m. OK MS C++ TESTS 31 46 307200 1400
82355378 vjudge4 B June 3, 2020, 2:55 a.m. OK MS C++ 2017 TESTS 31 31 0 1400
82305231 Nick_after_concont B June 2, 2020, 12:13 p.m. OK MS C++ 2017 TESTS 31 31 0 1400
82293350 getN1ght B June 2, 2020, 9:52 a.m. OK MS C++ 2017 TESTS 31 31 0 1400
82291245 vjudge2 B June 2, 2020, 9:25 a.m. OK MS C++ 2017 TESTS 31 31 0 1400
82287596 metal4people B June 2, 2020, 8:42 a.m. OK MS C++ 2017 TESTS 31 31 0 1400
82186027 vjudge4 B June 1, 2020, 6:49 a.m. OK MS C++ 2017 TESTS 31 31 0 1400
82169822 Huahuahuo B June 1, 2020, 1:57 a.m. OK MS C++ 2017 TESTS 31 31 0 1400
82195805 q8_514199 B June 1, 2020, 8:40 a.m. OK MS C++ 2017 TESTS 31 31 102400 1400
82196210 langfeihenkechi B June 1, 2020, 8:44 a.m. OK MS C++ 2017 TESTS 31 31 102400 1400
82196242 vjudge2 B June 1, 2020, 8:45 a.m. OK MS C++ 2017 TESTS 31 31 102400 1400
82189089 FailBetterNextTime B June 1, 2020, 7:24 a.m. OK PyPy 2 TESTS 31 140 1228800 1400
82157449 rkstalker B May 31, 2020, 7:40 p.m. OK PyPy 2 TESTS 31 155 2457600 1400
82304159 yumtam B June 2, 2020, 12:01 p.m. OK PyPy 2 TESTS 31 156 2457600 1400
82162798 realnimish B May 31, 2020, 9:30 p.m. OK PyPy 2 TESTS 31 218 921600 1400
82184721 mo-hit B June 1, 2020, 6:33 a.m. OK PyPy 2 TESTS 31 248 9420800 1400
82161126 tirtho2107 B May 31, 2020, 8:49 p.m. OK PyPy 3 TESTS 31 155 1945600 1400
82184302 alex_code B June 1, 2020, 6:27 a.m. OK PyPy 3 TESTS 31 155 2150400 1400
82149549 Dewangee B May 31, 2020, 6:04 p.m. OK PyPy 3 TESTS 31 155 2150400 1400
82210181 Sam6134 B June 1, 2020, 11:23 a.m. OK PyPy 3 TESTS 31 155 2355200 1400
82175725 lochan99melam B June 1, 2020, 4:16 a.m. OK PyPy 3 TESTS 31 155 2355200 1400
82159353 mordwin03 B May 31, 2020, 8:13 p.m. OK PyPy 3 TESTS 31 155 2355200 1400
82312784 kartikgiri92 B June 2, 2020, 1:38 p.m. OK PyPy 3 TESTS 31 155 2560000 1400
82255888 Scopula B June 1, 2020, 9:14 p.m. OK PyPy 3 TESTS 31 155 2662400 1400
82164636 bit_2 B May 31, 2020, 10:31 p.m. OK PyPy 3 TESTS 31 155 2867200 1400
82222220 Anuranjan_Pandey B June 1, 2020, 1:41 p.m. OK PyPy 3 TESTS 31 156 2355200 1400
82183432 sirna07 B June 1, 2020, 6:16 a.m. OK Python 2 TESTS 31 202 102400 1400
82195918 crapplet B June 1, 2020, 8:41 a.m. OK Python 2 TESTS 31 217 204800 1400
82173068 nandarustam B June 1, 2020, 3:19 a.m. OK Python 2 TESTS 31 311 409600 1400
82398154 Pavs B June 3, 2020, 12:55 p.m. OK Python 2 TESTS 31 374 819200 1400
82221408 abatalshikov B June 1, 2020, 1:32 p.m. OK Python 3 TESTS 31 155 614400 1400
82454021 thukrake_mera_pyaar B June 4, 2020, 6:31 a.m. OK Python 3 TESTS 31 171 307200 1400
82217915 raunaksarda1999 B June 1, 2020, 12:51 p.m. OK Python 3 TESTS 31 171 307200 1400
82168021 GTrigger B June 1, 2020, 12:55 a.m. OK Python 3 TESTS 31 171 307200 1400
82289913 kamal.kld11 B June 2, 2020, 9:09 a.m. OK Python 3 TESTS 31 171 512000 1400
82266270 meghnavarma0 B June 2, 2020, 3:33 a.m. OK Python 3 TESTS 31 171 512000 1400
82221922 Ksoni99 B June 1, 2020, 1:38 p.m. OK Python 3 TESTS 31 171 512000 1400
82168562 a_sc B June 1, 2020, 1:16 a.m. OK Python 3 TESTS 31 171 512000 1400
82152820 LintuStorm B May 31, 2020, 6:39 p.m. OK Python 3 TESTS 31 171 512000 1400
82421197 admitin B June 3, 2020, 5:15 p.m. OK Python 3 TESTS 31 171 614400 1400
82354538 mario10king B June 3, 2020, 2:36 a.m. OK Ruby TESTS 31 156 409600 1400
82352673 mario10king B June 3, 2020, 1:42 a.m. OK Ruby TESTS 31 187 409600 1400
82306920 pandrei B June 2, 2020, 12:32 p.m. OK Rust TESTS 31 46 102400 1400
82472889 kobae964 B June 4, 2020, 10:33 a.m. OK Rust TESTS 31 46 921600 1400
82218423 re_agent B June 1, 2020, 12:57 p.m. OK Rust TESTS 31 61 102400 1400

remove filters

Back to search problems