Educational Codeforces Round 106 (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
1499 Educational Codeforces Round 106 (Rated for Div. 2) FINISHED False 7200 121100963 March 18, 2021, 2:50 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 20961 ) B Binary Removals PROGRAMMING brute force dp greedy implementation

B'You are given a string s , consisting only of characters '0 ' or '1 '. Let |s| be the length of s . You are asked to choose some integer k ( k > 0 ) and find a sequence a of length k such that: The characters at positions a_1, a_2, ... , a_k are removed, the remaining characters are concatenated without changing the order. So, in other words, the positions in the sequence a should not be adjacent. Let the resulting string be s ' . s ' is called sorted if for all i from 2 to |s '| s '_{i-1} <= s '_i . Does there exist such a sequence a that the resulting string s ' is sorted? The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of testcases. Then the descriptions of t testcases follow. The only line of each testcase contains a string s ( 2 <= |s| <= 100 ). Each character is either '0 ' or '1 '. For each testcase print "YES" if there exists a sequence a such that removing the characters at positions a_1, a_2, ... , a_k and concatenating the parts without changing the order produces a sorted string. Otherwise, print "NO". You may print every letter in any case you want (so, for example, the strings yEs, yes, Yes and YES are all recognized as positive answer). In the first testcase you can choose a sequence a=[1,3,6,9] . Removing the underlined letters from "10101011011" will produce a string "0011111", which is sorted. In the second and the third testcases the sequences are already sorted. In the fourth testcase you can choose a sequence a=[3] . s '= "11", which is sorted. In the fifth testcase there is no way to choose a sequence a such that s ' is sorted. '...

Tutorials

Educational Codeforces Round 106 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
110384833 Jacob_Kalisto B March 18, 2021, 4:47 p.m. OK GNU C11 TESTS 10 15 0
110417979 Ridwan_Islam B March 19, 2021, 5:33 a.m. OK GNU C11 TESTS 10 30 0
110382705 Harthik14 B March 18, 2021, 4:42 p.m. OK GNU C11 TESTS 10 30 0
110378540 pavantankala B March 18, 2021, 4:30 p.m. OK GNU C11 TESTS 10 31 0
110394425 phuclevinh2000 B March 18, 2021, 6:14 p.m. OK GNU C11 TESTS 10 31 0
110394989 SajibKC_19 B March 18, 2021, 6:22 p.m. OK GNU C11 TESTS 10 31 0
110416907 Mr_Simple_TG B March 19, 2021, 5:11 a.m. OK GNU C11 TESTS 10 31 0
110390728 blazecipher987 B March 18, 2021, 5:25 p.m. OK GNU C11 TESTS 10 31 0
110408849 gnored B March 19, 2021, 1:26 a.m. OK GNU C++11 TESTS 10 15 0
110408300 ArvinCiu B March 19, 2021, 12:59 a.m. OK GNU C++11 TESTS 10 15 0
110408005 qinghua B March 19, 2021, 12:45 a.m. OK GNU C++11 TESTS 10 15 0
110394154 Masab B March 18, 2021, 6:10 p.m. OK GNU C++11 TESTS 10 15 0
110415391 real_man B March 19, 2021, 4:40 a.m. OK GNU C++11 TESTS 10 15 0
110415081 Rohit323615 B March 19, 2021, 4:33 a.m. OK GNU C++11 TESTS 10 15 0
110413755 saurabh_2014 B March 19, 2021, 4:03 a.m. OK GNU C++11 TESTS 10 15 0
110412956 mohit_mundra B March 19, 2021, 3:40 a.m. OK GNU C++11 TESTS 10 15 0
110410868 hx073269 B March 19, 2021, 2:40 a.m. OK GNU C++11 TESTS 10 15 0
110408921 olimpo B March 19, 2021, 1:29 a.m. OK GNU C++11 TESTS 10 15 0
110398645 dig_it_deep B March 18, 2021, 7:21 p.m. OK GNU C++14 TESTS 10 15 0
110398457 Believe B March 18, 2021, 7:17 p.m. OK GNU C++14 TESTS 10 15 0
110397776 ArianKheirandish B March 18, 2021, 7:05 p.m. OK GNU C++14 TESTS 10 15 0
110418024 __BHARGAV__ B March 19, 2021, 5:34 a.m. OK GNU C++14 TESTS 10 15 0
110417858 sai_deepchand B March 19, 2021, 5:32 a.m. OK GNU C++14 TESTS 10 15 0
110416904 incomprehensive B March 19, 2021, 5:11 a.m. OK GNU C++14 TESTS 10 15 0
110415498 A.barwar B March 19, 2021, 4:42 a.m. OK GNU C++14 TESTS 10 15 0
110407347 chobe0719 B March 19, 2021, 12:11 a.m. OK GNU C++14 TESTS 10 15 0
110404654 namangpt2312 B March 18, 2021, 9:54 p.m. OK GNU C++14 TESTS 10 15 0
110400482 singhankit62000 B March 18, 2021, 7:56 p.m. OK GNU C++14 TESTS 10 15 0
110418248 alok9821 B March 19, 2021, 5:38 a.m. OK GNU C++17 TESTS 10 15 0
110419874 mec18.sam B March 19, 2021, 5:59 a.m. OK GNU C++17 TESTS 10 15 0
110419694 Ravivek080 B March 19, 2021, 5:57 a.m. OK GNU C++17 TESTS 10 15 0
110419165 sahilgoyals B March 19, 2021, 5:50 a.m. OK GNU C++17 TESTS 10 15 0
110418824 KP1010 B March 19, 2021, 5:45 a.m. OK GNU C++17 TESTS 10 15 0
110418001 vihaanthora B March 19, 2021, 5:34 a.m. OK GNU C++17 TESTS 10 15 0
110416236 ssashish21 B March 19, 2021, 4:55 a.m. OK GNU C++17 TESTS 10 15 0
110416190 priyanshu_x B March 19, 2021, 4:55 a.m. OK GNU C++17 TESTS 10 15 0
110415349 Kapalin B March 19, 2021, 4:39 a.m. OK GNU C++17 TESTS 10 15 0
110415087 Roar47 B March 19, 2021, 4:33 a.m. OK GNU C++17 TESTS 10 15 0
110403515 maycod23 B March 18, 2021, 9:13 p.m. OK GNU C++17 (64) TESTS 10 15 0
110403143 Zidaan B March 18, 2021, 9:01 p.m. OK GNU C++17 (64) TESTS 10 15 0
110400250 the_hyp0cr1t3 B March 18, 2021, 7:52 p.m. OK GNU C++17 (64) TESTS 10 15 0
110406036 bhrosas B March 18, 2021, 10:58 p.m. OK GNU C++17 (64) TESTS 10 15 0
110407339 AMO5 B March 19, 2021, 12:11 a.m. OK GNU C++17 (64) TESTS 10 15 0
110408988 youtsuha B March 19, 2021, 1:32 a.m. OK GNU C++17 (64) TESTS 10 15 0
110412048 viyaaat B March 19, 2021, 3:14 a.m. OK GNU C++17 (64) TESTS 10 15 0
110412503 inszva B March 19, 2021, 3:28 a.m. OK GNU C++17 (64) TESTS 10 15 0
110416047 problems003 B March 19, 2021, 4:52 a.m. OK GNU C++17 (64) TESTS 10 15 0
110417854 lemme_think B March 19, 2021, 5:32 a.m. OK GNU C++17 (64) TESTS 10 15 0
110387958 0x3F B March 18, 2021, 5:01 p.m. OK Go TESTS 10 296 0
110390694 Shaggy949 B March 18, 2021, 5:25 p.m. OK Go TESTS 10 312 0
110386849 bittubittu B March 18, 2021, 4:54 p.m. OK Java 11 TESTS 10 187 0
110395961 RegalBeast B March 18, 2021, 6:36 p.m. OK Java 11 TESTS 10 187 0
110395390 future_me B March 18, 2021, 6:28 p.m. OK Java 11 TESTS 10 187 0
110383460 aditya.rwt773 B March 18, 2021, 4:44 p.m. OK Java 11 TESTS 10 202 0
110403843 soumik_giggle_07673 B March 18, 2021, 9:23 p.m. OK Java 11 TESTS 10 202 0
110416315 Axel.blaze- B March 19, 2021, 4:57 a.m. OK Java 11 TESTS 10 202 0
110401146 Abhi_Valani B March 18, 2021, 8:10 p.m. OK Java 11 TESTS 10 202 0
110398348 tony_heart B March 18, 2021, 7:15 p.m. OK Java 11 TESTS 10 202 0
110396448 RuthlessAggression B March 18, 2021, 6:43 p.m. OK Java 11 TESTS 10 202 0
110395942 CoronaTime B March 18, 2021, 6:35 p.m. OK Java 11 TESTS 10 202 0
110415111 toretto_011 B March 19, 2021, 4:34 a.m. OK Java 8 TESTS 10 108 0
110379438 sakethsriram19 B March 18, 2021, 4:32 p.m. OK Java 8 TESTS 10 109 0
110412810 Parimal B March 19, 2021, 3:36 a.m. OK Java 8 TESTS 10 109 0
110398699 RonWonWon B March 18, 2021, 7:22 p.m. OK Java 8 TESTS 10 109 0
110381490 manan_0104 B March 18, 2021, 4:38 p.m. OK Java 8 TESTS 10 109 0
110417816 edenSpace B March 19, 2021, 5:32 a.m. OK Java 8 TESTS 10 124 0
110405169 Kunal_30 B March 18, 2021, 10:12 p.m. OK Java 8 TESTS 10 124 0
110398123 arunmsharma B March 18, 2021, 7:11 p.m. OK Java 8 TESTS 10 124 0
110397570 Dstoical B March 18, 2021, 7:01 p.m. OK Java 8 TESTS 10 124 0
110396196 dynamo_001 B March 18, 2021, 6:39 p.m. OK Java 8 TESTS 10 124 0
110383928 scalalang B March 18, 2021, 4:45 p.m. OK Kotlin TESTS 10 170 0
110379340 DMN B March 18, 2021, 4:32 p.m. OK Mono C# TESTS 10 62 206028800
110384167 Saif_Dawood B March 18, 2021, 4:45 p.m. OK MS C++ TESTS 10 31 0
110380067 eurler B March 18, 2021, 4:34 p.m. OK MS C++ TESTS 10 31 0
110395363 say_hi B March 18, 2021, 6:27 p.m. OK MS C++ 2017 TESTS 10 15 0
110380606 laboputer B March 18, 2021, 4:36 p.m. OK MS C++ 2017 TESTS 10 15 0
110394435 mnrmustafa B March 18, 2021, 6:14 p.m. OK MS C++ 2017 TESTS 10 30 0
110412307 ch_hui B March 19, 2021, 3:22 a.m. OK MS C++ 2017 TESTS 10 30 102400
110387383 mary_khabarova B March 18, 2021, 4:57 p.m. OK MS C++ 2017 TESTS 10 31 0
110416916 pgggggggggh B March 19, 2021, 5:12 a.m. OK MS C++ 2017 TESTS 10 31 0
110390233 whiteReboot B March 18, 2021, 5:20 p.m. OK MS C++ 2017 TESTS 10 31 0
110384414 B3h3moth B March 18, 2021, 4:46 p.m. OK MS C++ 2017 TESTS 10 31 0
110388445 HeTrack B March 18, 2021, 5:05 p.m. OK MS C++ 2017 TESTS 10 31 204800
110392700 mnrmustafa B March 18, 2021, 5:50 p.m. OK MS C++ 2017 TESTS 10 31 307200
110387721 sakapon B March 18, 2021, 4:59 p.m. OK .NET Core C# TESTS 10 93 307200
110390865 henrychenOutlook B March 18, 2021, 5:27 p.m. OK Node.js TESTS 10 92 1638400
110391649 aayush_1607 B March 18, 2021, 5:36 p.m. OK PyPy 3 TESTS 10 124 1945600
110420221 codicon B March 19, 2021, 6:04 a.m. OK PyPy 3 TESTS 10 124 3072000
110387698 aayush_1607 B March 18, 2021, 4:59 p.m. OK PyPy 3 TESTS 10 124 3072000
110398350 arin17 B March 18, 2021, 7:15 p.m. OK PyPy 3 TESTS 10 140 2048000
110396602 bjy B March 18, 2021, 6:45 p.m. OK PyPy 3 TESTS 10 140 2355200
110411603 uttharapally.chandra B March 19, 2021, 3:01 a.m. OK PyPy 3 TESTS 10 140 2560000
110387650 joqjoq966 B March 18, 2021, 4:59 p.m. OK PyPy 3 TESTS 10 140 2662400
110397397 rajanabhishek12340 B March 18, 2021, 6:58 p.m. OK PyPy 3 TESTS 10 140 2969600
110379753 Steve_Lee B March 18, 2021, 4:33 p.m. OK PyPy 3 TESTS 10 140 2969600
110418982 rvarian B March 19, 2021, 5:48 a.m. OK PyPy 3 TESTS 10 140 3276800
110379418 elistark B March 18, 2021, 4:32 p.m. OK Python 2 TESTS 10 108 0
110392495 Ankit0403 B March 18, 2021, 5:48 p.m. OK Python 3 TESTS 10 61 0
110395960 light_yagami52 B March 18, 2021, 6:36 p.m. OK Python 3 TESTS 10 62 0
110393721 sal_man_soori B March 18, 2021, 6:04 p.m. OK Python 3 TESTS 10 62 0
110387511 tayyrov B March 18, 2021, 4:58 p.m. OK Python 3 TESTS 10 62 0
110379889 MR_MECHANICAL B March 18, 2021, 4:34 p.m. OK Python 3 TESTS 10 62 0
110378854 Igoria B March 18, 2021, 4:31 p.m. OK Python 3 TESTS 10 62 0
110388497 pdoongarwal B March 18, 2021, 5:05 p.m. OK Python 3 TESTS 10 62 307200
110415380 AdvithDesu B March 19, 2021, 4:40 a.m. OK Python 3 TESTS 10 77 0
110410112 Xenon1901 B March 19, 2021, 2:16 a.m. OK Python 3 TESTS 10 77 0
110410033 hogrider B March 19, 2021, 2:14 a.m. OK Python 3 TESTS 10 77 0

remove filters

Back to search problems