Codeforces Round 724 (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
1536 Codeforces Round 724 (Div. 2) FINISHED False 7200 114189863 June 6, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19422 ) B Prinzessin der Verurteilung PROGRAMMING brute force strings 1200

B"I, Fischl, Prinzessin der Verurteilung, descend upon this land by the call of fate an -- Oh, you are also a traveler from another world? Very well, I grant you permission to travel with me. It is no surprise Fischl speaks with a strange choice of words. However, this time, not even Oz, her raven friend, can interpret her expressions! Maybe you can help us understand what this young princess is saying? You are given a string of n lowercase Latin letters, the word that Fischl just spoke. You think that the MEX of this string may help you find the meaning behind this message. The MEX of the string is defined as the shortest string that doesn't appear as a contiguous substring in the input. If multiple strings exist, the lexicographically smallest one is considered the MEX. Note that the empty substring does NOT count as a valid MEX. A string a is lexicographically smaller than a string b if and only if one of the following holds: A string a is a substring of a string b if a can be obtained from b by deletion of several (possibly, zero or all) characters from the beginning and several (possibly, zero or all) characters from the end. Find out what the MEX of the string is! Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= q t <= q 1000 ). Description of the test cases follows. The first line of each test case contains an integer n ( 1 <= q n <= q 1000 ) -- the length of the word. The second line for each test case contains a single string of n lowercase Latin letters. The sum of n over all test cases will not exceed 1000 . For each test case, output the MEX of the string on a new line. "...

Tutorials

Codeforces Round #724 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
118668314 ssvb B June 6, 2021, 8:21 p.m. OK D TESTS 27 31 6144000 1200
118683371 Keenan2114 B June 7, 2021, 4:40 a.m. OK GNU C++11 TESTS 27 30 0 1200
118654641 afzal_shorif B June 6, 2021, 5:18 p.m. OK GNU C++11 TESTS 27 30 0 1200
118648750 qlw B June 6, 2021, 4:24 p.m. OK GNU C++11 TESTS 27 30 0 1200
118647182 imsandeep2 B June 6, 2021, 4:20 p.m. OK GNU C++11 TESTS 27 30 0 1200
118645807 rogger_2809 B June 6, 2021, 4:16 p.m. OK GNU C++11 TESTS 27 30 0 1200
118676424 hangzai B June 7, 2021, 2:16 a.m. OK GNU C++11 TESTS 27 30 102400 1200
118650326 believeInJha B June 6, 2021, 4:29 p.m. OK GNU C++11 TESTS 27 30 102400 1200
118688228 scau_y B June 7, 2021, 5:54 a.m. OK GNU C++11 TESTS 27 31 0 1200
118686196 riazahmed B June 7, 2021, 5:25 a.m. OK GNU C++11 TESTS 27 31 0 1200
118685065 Sabnaj B June 7, 2021, 5:08 a.m. OK GNU C++11 TESTS 27 31 0 1200
118665903 nazmul_hossin B June 6, 2021, 7:28 p.m. OK GNU C++14 TESTS 27 15 0 1200
118686184 aswami_123 B June 7, 2021, 5:25 a.m. OK GNU C++14 TESTS 27 30 0 1200
118686020 ss100429 B June 7, 2021, 5:22 a.m. OK GNU C++14 TESTS 27 30 0 1200
118674353 KKRpro B June 7, 2021, 1 a.m. OK GNU C++14 TESTS 27 30 0 1200
118663808 Jatin_Learner B June 6, 2021, 6:50 p.m. OK GNU C++14 TESTS 27 30 0 1200
118657013 sudhirMTS B June 6, 2021, 5:33 p.m. OK GNU C++14 TESTS 27 30 0 1200
118656974 avinash_2208 B June 6, 2021, 5:33 p.m. OK GNU C++14 TESTS 27 30 0 1200
118646632 ngtvu278 B June 6, 2021, 4:18 p.m. OK GNU C++14 TESTS 27 30 0 1200
118668664 mansigupta0709 B June 6, 2021, 8:31 p.m. OK GNU C++14 TESTS 27 30 102400 1200
118657729 KNightMaReee B June 6, 2021, 5:39 p.m. OK GNU C++14 TESTS 27 30 102400 1200
118665512 kush_1234 B June 6, 2021, 7:20 p.m. OK GNU C++17 TESTS 27 15 307200 1200
118665133 1-gon B June 6, 2021, 7:13 p.m. OK GNU C++17 TESTS 27 15 307200 1200
118680011 divyeshjivani B June 7, 2021, 3:36 a.m. OK GNU C++17 TESTS 27 30 0 1200
118679991 Cccc23333 B June 7, 2021, 3:36 a.m. OK GNU C++17 TESTS 27 30 0 1200
118678610 Kevin_5997 B June 7, 2021, 3:06 a.m. OK GNU C++17 TESTS 27 30 0 1200
118675119 kusm B June 7, 2021, 1:32 a.m. OK GNU C++17 TESTS 27 30 0 1200
118673429 roi_029 B June 7, 2021, 12:10 a.m. OK GNU C++17 TESTS 27 30 0 1200
118670556 divyanshu_kl B June 6, 2021, 9:31 p.m. OK GNU C++17 TESTS 27 30 0 1200
118669702 PassingByVisitor B June 6, 2021, 9:01 p.m. OK GNU C++17 TESTS 27 30 0 1200
118667610 machhra B June 6, 2021, 8:05 p.m. OK GNU C++17 TESTS 27 30 0 1200
118646110 anshanand45 B June 6, 2021, 4:16 p.m. OK GNU C++17 (64) TESTS 27 15 0 1200
118670839 Sir_Edward B June 6, 2021, 9:41 p.m. OK GNU C++17 (64) TESTS 27 15 307200 1200
118677968 Amimoy12 B June 7, 2021, 2:51 a.m. OK GNU C++17 (64) TESTS 27 30 0 1200
118677562 aniket_lakhotia B June 7, 2021, 2:43 a.m. OK GNU C++17 (64) TESTS 27 30 0 1200
118677108 ajai_C_R_7_ B June 7, 2021, 2:32 a.m. OK GNU C++17 (64) TESTS 27 30 0 1200
118676103 wty2016 B June 7, 2021, 2:07 a.m. OK GNU C++17 (64) TESTS 27 30 0 1200
118670062 Test_Try001 B June 6, 2021, 9:12 p.m. OK GNU C++17 (64) TESTS 27 30 0 1200
118668635 allFiredUp_ftw B June 6, 2021, 8:30 p.m. OK GNU C++17 (64) TESTS 27 30 0 1200
118668577 Ri_Ni B June 6, 2021, 8:28 p.m. OK GNU C++17 (64) TESTS 27 30 0 1200
118655948 gouravmodi10 B June 6, 2021, 5:25 p.m. OK GNU C++17 (64) TESTS 27 30 0 1200
118645590 0x3F B June 6, 2021, 4:15 p.m. OK Go TESTS 27 46 102400 1200
118655320 b2jena B June 6, 2021, 5:21 p.m. OK Haskell TESTS 27 31 102400 1200
118671329 frillo B June 6, 2021, 10:02 p.m. OK Haskell TESTS 27 670 102400 1200
118655371 ypa B June 6, 2021, 5:21 p.m. OK Java 11 TESTS 27 171 0 1200
118659740 tsaraf B June 6, 2021, 6 p.m. OK Java 11 TESTS 27 187 0 1200
118684752 algothink B June 7, 2021, 5:03 a.m. OK Java 11 TESTS 27 202 0 1200
118683387 ramuked B June 7, 2021, 4:41 a.m. OK Java 11 TESTS 27 202 0 1200
118676818 MoonCoder1234 B June 7, 2021, 2:26 a.m. OK Java 11 TESTS 27 202 0 1200
118670786 noob_hackman B June 6, 2021, 9:39 p.m. OK Java 11 TESTS 27 202 0 1200
118669852 soumik_giggle_07673 B June 6, 2021, 9:05 p.m. OK Java 11 TESTS 27 202 0 1200
118668500 yudi23 B June 6, 2021, 8:26 p.m. OK Java 11 TESTS 27 202 0 1200
118649239 vrindagupta6828 B June 6, 2021, 4:26 p.m. OK Java 11 TESTS 27 202 0 1200
118647855 Sniper654 B June 6, 2021, 4:22 p.m. OK Java 11 TESTS 27 202 0 1200
118657483 rsingh3_be18 B June 6, 2021, 5:37 p.m. OK Java 8 TESTS 27 108 0 1200
118657864 vaibhavsarda B June 6, 2021, 5:41 p.m. OK Java 8 TESTS 27 109 0 1200
118657474 smahajan54842 B June 6, 2021, 5:37 p.m. OK Java 8 TESTS 27 109 0 1200
118688628 Rahul_Adlakha B June 7, 2021, 5:58 a.m. OK Java 8 TESTS 27 124 0 1200
118688188 abhi74 B June 7, 2021, 5:53 a.m. OK Java 8 TESTS 27 124 0 1200
118686042 Shiv_Mahadev B June 7, 2021, 5:23 a.m. OK Java 8 TESTS 27 124 0 1200
118682390 amit_roy B June 7, 2021, 4:23 a.m. OK Java 8 TESTS 27 124 0 1200
118681860 zeyrox B June 7, 2021, 4:13 a.m. OK Java 8 TESTS 27 124 0 1200
118678501 dyxdxy B June 7, 2021, 3:03 a.m. OK Java 8 TESTS 27 124 0 1200
118675769 trappy00_28 B June 7, 2021, 1:55 a.m. OK Java 8 TESTS 27 124 0 1200
118669176 roman.dzhadan B June 6, 2021, 8:46 p.m. OK Kotlin TESTS 27 545 78950400 1200
118646752 Codingmyworld B June 6, 2021, 4:18 p.m. OK MS C++ TESTS 27 31 0 1200
118685885 piyushpathak3004 B June 7, 2021, 5:21 a.m. OK MS C++ 2017 TESTS 27 31 0 1200
118676445 rjrstuewfyg B June 7, 2021, 2:16 a.m. OK MS C++ 2017 TESTS 27 31 0 1200
118657016 nik2005 B June 6, 2021, 5:33 p.m. OK MS C++ 2017 TESTS 27 31 0 1200
118645769 Mednn12 B June 6, 2021, 4:15 p.m. OK MS C++ 2017 TESTS 27 31 0 1200
118667919 Swapnil_Vaish B June 6, 2021, 8:12 p.m. OK MS C++ 2017 TESTS 27 31 102400 1200
118650382 Swapnil_Vaish B June 6, 2021, 4:29 p.m. OK MS C++ 2017 TESTS 27 31 102400 1200
118682954 neveredge B June 7, 2021, 4:33 a.m. OK MS C++ 2017 TESTS 27 31 204800 1200
118651255 UnHingedFrog B June 6, 2021, 4:32 p.m. OK MS C++ 2017 TESTS 27 46 0 1200
118650622 BarebuhPuh B June 6, 2021, 4:30 p.m. OK MS C++ 2017 TESTS 27 46 0 1200
118666071 Ilyaiq300 B June 6, 2021, 7:31 p.m. OK MS C++ 2017 TESTS 27 312 206950400 1200
118654422 cs_tree B June 6, 2021, 5:17 p.m. OK PyPy 2 TESTS 27 171 2764800 1200
118681236 SummerDAway B June 7, 2021, 4:02 a.m. OK PyPy 2 TESTS 27 264 1126400 1200
118659967 NaAm_ME_kYa_raKhA_hAi B June 6, 2021, 6:03 p.m. OK PyPy 2 TESTS 27 264 8704000 1200
118646332 aniket11 B June 6, 2021, 4:17 p.m. OK PyPy 2 TESTS 27 748 217395200 1200
118666061 rishabhrao B June 6, 2021, 7:31 p.m. OK PyPy 3 TESTS 27 155 1536000 1200
118665195 _V3NOM_ B June 6, 2021, 7:14 p.m. OK PyPy 3 TESTS 27 171 1331200 1200
118663087 rishabhrao B June 6, 2021, 6:38 p.m. OK PyPy 3 TESTS 27 171 2867200 1200
118681413 rivnam B June 7, 2021, 4:05 a.m. OK PyPy 3 TESTS 27 171 2969600 1200
118681337 rivnam B June 7, 2021, 4:04 a.m. OK PyPy 3 TESTS 27 171 2969600 1200
118668928 CaptainHaddock B June 6, 2021, 8:39 p.m. OK PyPy 3 TESTS 27 186 3481600 1200
118662886 shantol B June 6, 2021, 6:35 p.m. OK PyPy 3 TESTS 27 202 2867200 1200
118655539 salty9 B June 6, 2021, 5:22 p.m. OK PyPy 3 TESTS 27 202 3584000 1200
118647517 thakur_shaheb B June 6, 2021, 4:21 p.m. OK PyPy 3 TESTS 27 202 3584000 1200
118647829 Mithun_K B June 6, 2021, 4:22 p.m. OK PyPy 3 TESTS 27 202 3891200 1200
118651070 Reyhane_ B June 6, 2021, 4:31 p.m. OK Python 3 TESTS 27 108 819200 1200
118683127 ShashankZobb B June 7, 2021, 4:36 a.m. OK Python 3 TESTS 27 109 0 1200
118679894 sathu.hebbar B June 7, 2021, 3:34 a.m. OK Python 3 TESTS 27 109 0 1200
118676682 linhthi B June 7, 2021, 2:23 a.m. OK Python 3 TESTS 27 109 0 1200
118660197 sarthakpujari12 B June 6, 2021, 6:06 p.m. OK Python 3 TESTS 27 109 0 1200
118658936 the_alchemist512 B June 6, 2021, 5:51 p.m. OK Python 3 TESTS 27 109 0 1200
118658037 flmnv B June 6, 2021, 5:42 p.m. OK Python 3 TESTS 27 109 0 1200
118657796 gg7916 B June 6, 2021, 5:40 p.m. OK Python 3 TESTS 27 109 0 1200
118651899 patulka B June 6, 2021, 4:33 p.m. OK Python 3 TESTS 27 109 0 1200
118649370 ealjkj B June 6, 2021, 4:26 p.m. OK Python 3 TESTS 27 109 0 1200
118665042 pakshi_141199 B June 6, 2021, 7:11 p.m. OK Python 3 + libs TESTS 27 140 0 1200
118655905 maxverr B June 6, 2021, 5:25 p.m. OK Rust TESTS 27 31 0 1200

remove filters

Back to search problems