Codeforces Round 617 (Div. 3)

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
1296 Codeforces Round 617 (Div. 3) FINISHED False 7200 156525911 Feb. 4, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14998 ) C Yet Another Walking Robot PROGRAMMING data structures implementation 1500

B'There is a robot on a coordinate plane. Initially, the robot is located at the point (0, 0) . Its path is described as a string s of length n consisting of characters 'L ', 'R ', 'U ', 'D '. Each of these characters corresponds to some move: The company that created this robot asked you to optimize the path of the robot somehow. To do this, you can remove any non-empty substring of the path. But this company doesn 't want their customers to notice the change in the robot behavior. It means that if before the optimization the robot ended its path at the point (x_e, y_e) , then after optimization (i.e. removing some single substring from s ) the robot also ends its path at the point (x_e, y_e) . This optimization is a low-budget project so you need to remove the shortest possible non-empty substring to optimize the robot 's path such that the endpoint of his path doesn 't change. It is possible that you can 't optimize the path. Also, it is possible that after the optimization the target path is an empty string (i.e. deleted substring is the whole string s ). Recall that the substring of s is such string that can be obtained from s by removing some amount of characters (possibly, zero) from the prefix and some amount of characters (possibly, zero) from the suffix. For example, the substrings of "LURLLR" are "LU", "LR", "LURLLR", "URL", but not "RR" and "UL". You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 1000 ) -- the number of test cases. The next 2t lines describe test cases. Each test case is given on two lines. The first line of the test case contains one integer n ( 1 <= n <= 2 cdot 10^5 ) -- the length of the robot 's path. The second line of the test case contains one string s consisting of n characters 'L ', 'R ', 'U ', 'D ' -- the robot 's path. It is guaranteed that the sum of n over all test cas'...

Tutorials

Codeforces Round #617 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
70383197 ftiasch C Feb. 5, 2020, 5:35 p.m. OK D TESTS 17 62 22323200 1500
71000740 donntu_knt_pi C Feb. 13, 2020, 4:13 p.m. OK Delphi TESTS 17 170 138444800 1500
71024257 NhatLe C Feb. 13, 2020, 10:13 p.m. OK GNU C11 TESTS 17 46 3379200 1500
70313500 kaiboy C Feb. 4, 2020, 8 p.m. OK GNU C11 TESTS 16 62 2662400 1500
70565495 jintiandun C Feb. 8, 2020, 1:05 p.m. OK GNU C++11 TESTS 17 46 2457600 1500
70295358 Alfred_Tirpitz C Feb. 4, 2020, 4:29 p.m. OK GNU C++11 TESTS 16 46 2560000 1500
70563335 luoguinchina C Feb. 8, 2020, 12:31 p.m. OK GNU C++11 TESTS 17 46 2662400 1500
70362214 WACry C Feb. 5, 2020, 1:30 p.m. OK GNU C++11 TESTS 16 46 2662400 1500
70511683 princess_rachel C Feb. 7, 2020, 3:02 p.m. OK GNU C++11 TESTS 17 46 2969600 1500
70971981 CCWUCMCTS C Feb. 13, 2020, 2:53 p.m. OK GNU C++11 TESTS 17 46 2969600 1500
70302571 kabbya C Feb. 4, 2020, 5:09 p.m. OK GNU C++11 TESTS 16 46 5836800 1500
70337344 HANGANG C Feb. 5, 2020, 7:33 a.m. OK GNU C++11 TESTS 16 46 8192000 1500
70340061 JY_Poi C Feb. 5, 2020, 8:12 a.m. OK GNU C++11 TESTS 16 46 8192000 1500
70597158 jintiandun C Feb. 9, 2020, 1:27 a.m. OK GNU C++11 TESTS 17 46 8192000 1500
71063912 DHT_Akira C Feb. 14, 2020, 2:04 p.m. OK GNU C++14 TESTS 17 31 3174400 1500
70296959 essay C Feb. 4, 2020, 4:32 p.m. OK GNU C++14 TESTS 16 46 2560000 1500
70504900 AKJ0811 C Feb. 7, 2020, 1:15 p.m. OK GNU C++14 TESTS 17 46 2969600 1500
70371118 vikramadityasinghkadian8 C Feb. 5, 2020, 3:17 p.m. OK GNU C++14 TESTS 17 46 2969600 1500
71063802 DHT_Akira C Feb. 14, 2020, 2:02 p.m. OK GNU C++14 TESTS 17 46 3174400 1500
71074094 sjy366 C Feb. 14, 2020, 4:47 p.m. OK GNU C++14 TESTS 17 46 4812800 1500
70489792 ftuknights C Feb. 7, 2020, 8:36 a.m. OK GNU C++14 TESTS 17 46 5836800 1500
70330700 nair.sanjay1103 C Feb. 5, 2020, 5:51 a.m. OK GNU C++14 TESTS 16 46 7270400 1500
70735193 d_i_m_a C Feb. 10, 2020, 2:27 p.m. OK GNU C++14 TESTS 17 46 7884800 1500
70334191 jarvis1008 C Feb. 5, 2020, 6:47 a.m. OK GNU C++14 TESTS 16 46 8089600 1500
70300486 Tajkioku C Feb. 4, 2020, 4:51 p.m. OK GNU C++17 TESTS 16 31 2457600 1500
70300218 Tajkioku C Feb. 4, 2020, 4:49 p.m. OK GNU C++17 TESTS 16 46 2355200 1500
70367957 Nutarum C Feb. 5, 2020, 2:34 p.m. OK GNU C++17 TESTS 17 46 2355200 1500
70624624 Kirin_Sunset C Feb. 9, 2020, 12:47 p.m. OK GNU C++17 TESTS 17 46 2662400 1500
70672914 Panji C Feb. 9, 2020, 3:46 p.m. OK GNU C++17 TESTS 17 46 2969600 1500
70526808 eR6 C Feb. 7, 2020, 7:59 p.m. OK GNU C++17 TESTS 17 46 2969600 1500
70293064 xuylego_ C Feb. 4, 2020, 4:23 p.m. OK GNU C++17 TESTS 16 46 2969600 1500
70711295 Dariush_M C Feb. 10, 2020, 7:03 a.m. OK GNU C++17 TESTS 17 46 2969600 1500
70847194 NewDawn C Feb. 12, 2020, 1:48 p.m. OK GNU C++17 TESTS 17 46 5017600 1500
70298077 DeepFake C Feb. 4, 2020, 4:34 p.m. OK GNU C++17 TESTS 16 46 5324800 1500
70422514 naipia C Feb. 6, 2020, 9:10 a.m. OK Go TESTS 17 62 8396800 1500
70514292 mminaev C Feb. 7, 2020, 3:48 p.m. OK Go TESTS 17 623 9011200 1500
70336236 JHSeng C Feb. 5, 2020, 7:17 a.m. OK Go TESTS 16 654 8601600 1500
70336415 JHSeng C Feb. 5, 2020, 7:20 a.m. OK Go TESTS 16 670 8601600 1500
70835045 sarthak.0702 C Feb. 12, 2020, 9:49 a.m. OK Java 11 TESTS 17 249 14438400 1500
70835913 sarthak.0702 C Feb. 12, 2020, 10:08 a.m. OK Java 11 TESTS 17 249 16384000 1500
70836057 sarthak.0702 C Feb. 12, 2020, 10:10 a.m. OK Java 11 TESTS 17 264 17612800 1500
70449260 saiyam_88 C Feb. 6, 2020, 3:58 p.m. OK Java 11 TESTS 17 265 16486400 1500
70696825 garg_vibhor C Feb. 9, 2020, 11:25 p.m. OK Java 11 TESTS 17 265 17100800 1500
70313499 Dukkha C Feb. 4, 2020, 8 p.m. OK Java 11 TESTS 16 280 5017600 1500
70383002 phenomenal_alan C Feb. 5, 2020, 5:33 p.m. OK Java 11 TESTS 17 280 14028800 1500
70362866 Anonymous C Feb. 5, 2020, 1:37 p.m. OK Java 11 TESTS 16 280 14336000 1500
70309853 Kimo_Fathy C Feb. 4, 2020, 6:52 p.m. OK Java 11 TESTS 16 280 16998400 1500
70473532 Younoknowme C Feb. 7, 2020, 2:17 a.m. OK Java 11 TESTS 17 295 14438400 1500
70355561 Apurva021 C Feb. 5, 2020, 12:07 p.m. OK Java 8 TESTS 16 171 14745600 1500
70479535 AnandOza C Feb. 7, 2020, 5:24 a.m. OK Java 8 TESTS 17 186 15462400 1500
70381800 iamyashh C Feb. 5, 2020, 5:17 p.m. OK Java 8 TESTS 17 187 3481600 1500
70560766 gokalanimadhav C Feb. 8, 2020, 11:47 a.m. OK Java 8 TESTS 17 187 11776000 1500
70305207 basheer97 C Feb. 4, 2020, 5:42 p.m. OK Java 8 TESTS 16 187 12288000 1500
70328129 Shameek C Feb. 5, 2020, 4:33 a.m. OK Java 8 TESTS 16 187 14848000 1500
70366967 StEpAn_123 C Feb. 5, 2020, 2:22 p.m. OK Java 8 TESTS 17 187 15257600 1500
70358427 bhavyseth C Feb. 5, 2020, 12:45 p.m. OK Java 8 TESTS 16 187 15257600 1500
70352034 gyshgx868 C Feb. 5, 2020, 11:14 a.m. OK Java 8 TESTS 16 202 4096000 1500
70301989 an09mous C Feb. 4, 2020, 5:04 p.m. OK Java 8 TESTS 16 202 10444800 1500
71084523 jhonber C Feb. 14, 2020, 8:29 p.m. OK JavaScript TESTS 17 280 35737600 1500
70348687 SlavaG C Feb. 5, 2020, 10:16 a.m. OK Kotlin TESTS 16 202 14438400 1500
70797985 badcw C Feb. 11, 2020, 4:04 p.m. OK Kotlin TESTS 17 233 15564800 1500
70331268 Spheniscine C Feb. 5, 2020, 6:02 a.m. OK Kotlin TESTS 16 248 16384000 1500
70354632 cjtoribio C Feb. 5, 2020, 11:54 a.m. OK Kotlin TESTS 16 249 14438400 1500
70360748 cmplx-xyttmt C Feb. 5, 2020, 1:14 p.m. OK Kotlin TESTS 16 265 14438400 1500
70293542 ganixdd C Feb. 4, 2020, 4:24 p.m. OK Kotlin TESTS 16 280 16076800 1500
70627633 hamtory C Feb. 9, 2020, 1:44 p.m. OK Kotlin TESTS 17 296 25395200 1500
70303218 nopopon C Feb. 4, 2020, 5:17 p.m. OK Kotlin TESTS 16 327 39321600 1500
71023428 Mosyagin C Feb. 13, 2020, 9:38 p.m. OK Mono C# TESTS 17 139 20684800 1500
70319674 ilia.kot C Feb. 4, 2020, 11:06 p.m. OK Mono C# TESTS 16 139 21504000 1500
70321667 shy3205 C Feb. 5, 2020, 12:48 a.m. OK Mono C# TESTS 16 187 24473600 1500
70334242 sakapon C Feb. 5, 2020, 6:48 a.m. OK Mono C# TESTS 16 202 29491200 1500
70326775 sakapon C Feb. 5, 2020, 3:51 a.m. OK Mono C# TESTS 16 202 37171200 1500
70341217 korntest C Feb. 5, 2020, 8:28 a.m. OK Mono C# TESTS 16 217 24473600 1500
70326173 sakapon C Feb. 5, 2020, 3:32 a.m. OK Mono C# TESTS 16 218 37068800 1500
70421629 TRR C Feb. 6, 2020, 8:55 a.m. OK Mono C# TESTS 17 249 5529600 1500
70295679 faxse C Feb. 4, 2020, 4:29 p.m. OK Mono C# TESTS 16 249 43827200 1500
70392668 ilia.kot C Feb. 5, 2020, 7:42 p.m. OK Mono C# TESTS 17 576 25190400 1500
70298910 samnever C Feb. 4, 2020, 4:40 p.m. OK MS C++ TESTS 16 46 9830400 1500
70344227 vjudge3 C Feb. 5, 2020, 9:13 a.m. OK MS C++ TESTS 16 62 7372800 1500
70489893 vjudge5 C Feb. 7, 2020, 8:38 a.m. OK MS C++ TESTS 17 78 8294400 1500
70765015 vjudge2 C Feb. 11, 2020, 4:13 a.m. OK MS C++ TESTS 17 78 11571200 1500
70350132 ltnotfty C Feb. 5, 2020, 10:40 a.m. OK MS C++ TESTS 16 93 8089600 1500
70342308 dsesok C Feb. 5, 2020, 8:44 a.m. OK MS C++ TESTS 16 93 11264000 1500
70337203 paradoxhzy C Feb. 5, 2020, 7:31 a.m. OK MS C++ 2017 TESTS 16 46 5017600 1500
70327822 lesf0 C Feb. 5, 2020, 4:23 a.m. OK MS C++ 2017 TESTS 16 46 8704000 1500
70407464 happy_cf C Feb. 6, 2020, 3:16 a.m. OK MS C++ 2017 TESTS 17 61 8294400 1500
70294849 XytenSki C Feb. 4, 2020, 4:27 p.m. OK MS C++ 2017 TESTS 16 61 8806400 1500
70324549 jcyBigShuai C Feb. 5, 2020, 2:42 a.m. OK MS C++ 2017 TESTS 16 62 8089600 1500
70326188 O_Ol C Feb. 5, 2020, 3:32 a.m. OK MS C++ 2017 TESTS 16 62 8294400 1500
70322269 suun C Feb. 5, 2020, 1:17 a.m. OK MS C++ 2017 TESTS 16 62 8294400 1500
70309127 AlexanderL C Feb. 4, 2020, 6:39 p.m. OK MS C++ 2017 TESTS 16 62 8294400 1500
70308515 aliupingtao C Feb. 4, 2020, 6:29 p.m. OK MS C++ 2017 TESTS 16 62 8294400 1500
70587066 WoodMachine C Feb. 8, 2020, 6:57 p.m. OK MS C++ 2017 TESTS 17 62 8294400 1500
70296824 rsFalse C Feb. 4, 2020, 4:32 p.m. OK Perl TESTS 16 702 76492800 1500
70485875 reyad C Feb. 7, 2020, 7:22 a.m. OK PHP TESTS 17 108 16384000 1500
70466365 mayakin C Feb. 6, 2020, 8:39 p.m. OK PHP TESTS 17 171 16384000 1500
70325550 shroud1403 C Feb. 5, 2020, 3:14 a.m. OK PyPy 2 TESTS 16 296 18636800 1500
70307524 m.ni C Feb. 4, 2020, 6:14 p.m. OK PyPy 3 TESTS 16 264 32665600 1500
70455460 FahimSifnatul C Feb. 6, 2020, 5:21 p.m. OK PyPy 3 TESTS 17 265 26726400 1500
70576212 Affe C Feb. 8, 2020, 3:50 p.m. OK PyPy 3 TESTS 17 295 18124800 1500
70321635 areebbeigh C Feb. 5, 2020, 12:47 a.m. OK PyPy 3 TESTS 16 296 23859200 1500
70303626 ori.convert.torus C Feb. 4, 2020, 5:21 p.m. OK PyPy 3 TESTS 16 312 18227200 1500
70292915 lIn_nIl C Feb. 4, 2020, 4:22 p.m. OK PyPy 3 TESTS 16 312 26214400 1500
70352698 sureshsinghspd C Feb. 5, 2020, 11:24 a.m. OK PyPy 3 TESTS 16 312 38195200 1500
70373063 shourya98banerjee C Feb. 5, 2020, 3:42 p.m. OK PyPy 3 TESTS 17 326 31129600 1500
70300854 ibalram C Feb. 4, 2020, 4:54 p.m. OK PyPy 3 TESTS 16 327 18944000 1500
70482987 xiaohejun C Feb. 7, 2020, 6:34 a.m. OK PyPy 3 TESTS 17 327 20684800 1500
70685742 invincible007 C Feb. 9, 2020, 6:05 p.m. OK Python 2 TESTS 17 374 21196800 1500
70391328 LintuStorm C Feb. 5, 2020, 7:16 p.m. OK Python 3 TESTS 17 233 23961600 1500
70379135 s_m_10 C Feb. 5, 2020, 5:03 p.m. OK Python 3 TESTS 17 265 24166400 1500
70320038 CallMeMushroom C Feb. 4, 2020, 11:24 p.m. OK Python 3 TESTS 16 280 21913600 1500
70454605 velu276 C Feb. 6, 2020, 5:09 p.m. OK Python 3 TESTS 17 280 22937600 1500
70387027 shade1010 C Feb. 5, 2020, 6:04 p.m. OK Python 3 TESTS 17 280 22937600 1500
70306916 uddeshya.singh C Feb. 4, 2020, 6:04 p.m. OK Python 3 TESTS 16 280 23449600 1500
70849622 zebra3285 C Feb. 12, 2020, 2:30 p.m. OK Python 3 TESTS 17 280 23961600 1500
70557257 Vaibhav_patel19 C Feb. 8, 2020, 10:48 a.m. OK Python 3 TESTS 17 280 25804800 1500
70512663 kAN_de_thuong C Feb. 7, 2020, 3:19 p.m. OK Python 3 TESTS 17 296 23142400 1500
70310063 mosendz C Feb. 4, 2020, 6:56 p.m. OK Python 3 TESTS 16 296 23654400 1500
70623816 nikitaqqqq C Feb. 9, 2020, 12:31 p.m. OK Ruby TESTS 17 748 21606400 1500
70569795 terraformer C Feb. 8, 2020, 2:06 p.m. OK Rust TESTS 17 93 12595200 1500

remove filters

Back to search problems