Codeforces Round 627 (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
1324 Codeforces Round 627 (Div. 3) FINISHED False 7200 153161663 March 12, 2020, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 28509 ) C Frog Jumps PROGRAMMING binary search data structures greedy implementation

B"There is a frog staying to the left of the string s = s_1 s_2 ldots s_n consisting of n characters (to be more precise, the frog initially stays at the cell 0 ). Each character of s is either 'L' or 'R'. It means that if the frog is staying at the i -th cell and the i -th character is 'L', the frog can jump only to the left. If the frog is staying at the i -th cell and the i -th character is 'R', the frog can jump only to the right. The frog can jump only to the right from the cell 0 . Note that the frog can jump into the same cell twice and can perform as many jumps as it needs. The frog wants to reach the n+1 -th cell. The frog chooses some positive integer value d before the first jump (and cannot change it later) and jumps by no more than d cells at once. I.e. if the i -th character is 'L' then the frog can jump to any cell in a range [max(0, i - d); i - 1] , and if the i -th character is 'R' then the frog can jump to any cell in a range [i + 1; min(n + 1; i + d)] . The frog doesn't want to jump far, so your task is to find the minimum possible value of d such that the frog can reach the cell n+1 from the cell 0 if it can jump by no more than d cells at once. It is guaranteed that it is always possible to reach n+1 from 0 . You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The next t lines describe test cases. The i -th test case is described as a string s consisting of at least 1 and at most 2 cdot 10^5 characters 'L' and 'R'. It is guaranteed that the sum of lengths of strings over all test cases does not exceed 2 cdot 10^5 ( sum |s| <= 2 cdot 10^5 ). For each test case, print the answer -- the minimum possible value of d such that the frog can reach the cell n+1 f"...

Tutorials

Codeforces Round #627 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
73725961 wlshih C March 19, 2020, 4:43 p.m. OK Clang++17 Diagnostics TESTS 14 139 0
73758031 yushao.cs05 C March 20, 2020, 4:20 a.m. OK Clang++17 Diagnostics TESTS 14 171 15155200
73289318 TheHedgehog C March 14, 2020, 9:26 p.m. OK Delphi TESTS 14 93 0
73182241 quadangvaica C March 14, 2020, 2:59 a.m. OK FPC TESTS 14 46 1331200
73302712 AKWarriors C March 15, 2020, 4:55 a.m. OK FPC TESTS 14 46 2150400
73284172 platonabramov C March 14, 2020, 7:43 p.m. OK FPC TESTS 14 62 1331200
73122502 primelee C March 13, 2020, 6:14 a.m. OK GNU C11 TESTS 14 46 0
73092678 haripriya_18530 C March 12, 2020, 5:25 p.m. OK GNU C11 TESTS 14 46 204800
73088807 amitj365 C March 12, 2020, 4:31 p.m. OK GNU C11 TESTS 14 46 204800
73347376 chowdhuryshashwoto C March 15, 2020, 3:28 p.m. OK GNU C11 TESTS 14 46 204800
73182937 AM.EN.U4ECE18153 C March 14, 2020, 3:26 a.m. OK GNU C11 TESTS 14 46 204800
73123195 SUNNY24 C March 13, 2020, 6:27 a.m. OK GNU C11 TESTS 14 46 204800
73121196 fenofista C March 13, 2020, 5:47 a.m. OK GNU C11 TESTS 14 46 204800
73122429 CrBurak09 C March 13, 2020, 6:13 a.m. OK GNU C11 TESTS 14 46 204800
73442136 patilc125 C March 16, 2020, 9:39 p.m. OK GNU C11 TESTS 14 46 1024000
73368489 kartik_2907 C March 15, 2020, 9:01 p.m. OK GNU C11 TESTS 14 46 1024000
73768232 shjohw12 C March 20, 2020, 7:02 a.m. OK GNU C++11 TESTS 14 15 0
73615085 2_3_3 C March 19, 2020, 12:21 a.m. OK GNU C++11 TESTS 14 15 204800
73181240 cym_ C March 14, 2020, 2:21 a.m. OK GNU C++11 TESTS 14 15 1024000
73379430 luogu_bot4 C March 16, 2020, 4:13 a.m. OK GNU C++11 TESTS 14 30 0
73379411 _lys_Ce C March 16, 2020, 4:13 a.m. OK GNU C++11 TESTS 14 30 0
73374510 luogu_bot1 C March 16, 2020, 12:47 a.m. OK GNU C++11 TESTS 14 30 0
73082699 tianti C March 12, 2020, 3:24 p.m. OK GNU C++11 TESTS 14 30 0
73557769 Night_falls C March 18, 2020, 9:57 a.m. OK GNU C++11 TESTS 14 30 204800
73422309 ChiNhan C March 16, 2020, 4:07 p.m. OK GNU C++11 TESTS 14 30 204800
73200204 kunkun220189 C March 14, 2020, 9:05 a.m. OK GNU C++11 TESTS 14 30 204800
73093647 MohamedSameh C March 12, 2020, 5:38 p.m. OK GNU C++14 TESTS 14 15 204800
73392335 vjudge1 C March 16, 2020, 8:44 a.m. OK GNU C++14 TESTS 14 15 204800
73182266 IAndYou C March 14, 2020, 2:59 a.m. OK GNU C++14 TESTS 14 15 204800
73390162 tokitsukaze C March 16, 2020, 8:08 a.m. OK GNU C++14 TESTS 14 15 307200
73538046 farheen_231 C March 18, 2020, 4:36 a.m. OK GNU C++14 TESTS 14 15 512000
73651680 hellb0y_suru C March 19, 2020, 12:22 p.m. OK GNU C++14 TESTS 14 15 512000
73602465 dinesh9547 C March 18, 2020, 7:10 p.m. OK GNU C++14 TESTS 14 15 512000
73557485 armin.atarod C March 18, 2020, 9:53 a.m. OK GNU C++14 TESTS 14 15 512000
73327952 thelonewolf C March 15, 2020, 11:15 a.m. OK GNU C++14 TESTS 14 15 512000
73415382 ashik_jiddney C March 16, 2020, 2:24 p.m. OK GNU C++14 TESTS 14 15 512000
73521983 shivtuls C March 17, 2020, 8:02 p.m. OK GNU C++17 TESTS 14 15 204800
73767821 TheTwin C March 20, 2020, 6:56 a.m. OK GNU C++17 TESTS 14 15 204800
73484547 yaoyaoling C March 17, 2020, 12:35 p.m. OK GNU C++17 TESTS 14 15 204800
73420027 how_to_become_purple C March 16, 2020, 3:38 p.m. OK GNU C++17 TESTS 14 15 204800
73375150 jame0313 C March 16, 2020, 1:22 a.m. OK GNU C++17 TESTS 14 15 204800
73314621 wwl995 C March 15, 2020, 8:03 a.m. OK GNU C++17 TESTS 14 15 204800
73293659 vjudge5 C March 14, 2020, 11:54 p.m. OK GNU C++17 TESTS 14 15 204800
73183547 greenblade C March 14, 2020, 3:48 a.m. OK GNU C++17 TESTS 14 15 204800
73137299 vjudge5 C March 13, 2020, 12:24 p.m. OK GNU C++17 TESTS 14 15 204800
73111558 Nson C March 13, 2020, 1:04 a.m. OK GNU C++17 TESTS 14 15 204800
73823437 max_cyk10 C March 20, 2020, 6:37 p.m. OK GNU C++17 (64) TESTS 14 77 4608000
73123588 snow_bear_328 C March 13, 2020, 6:35 a.m. OK Go TESTS 14 77 0
73476806 keshu6598 C March 17, 2020, 11:15 a.m. OK Go TESTS 14 670 204800
73132068 cunitac C March 13, 2020, 9:23 a.m. OK Haskell TESTS 14 46 4300800
73603948 cashitsuki C March 18, 2020, 7:32 p.m. OK Haskell TESTS 14 46 9420800
73189862 girkarkshitij C March 14, 2020, 6:16 a.m. OK Java 11 TESTS 14 171 0
73602844 Piccadilly C March 18, 2020, 7:15 p.m. OK Java 11 TESTS 14 186 0
73330863 happy15 C March 15, 2020, 11:53 a.m. OK Java 11 TESTS 14 186 0
73578599 Clowyy C March 18, 2020, 2:19 p.m. OK Java 11 TESTS 14 187 0
73153855 pennyIsLove C March 13, 2020, 4:23 p.m. OK Java 11 TESTS 14 187 0
73742704 shallotwang129 C March 19, 2020, 9:13 p.m. OK Java 11 TESTS 14 202 0
73481438 devesh08 C March 17, 2020, 12:10 p.m. OK Java 11 TESTS 14 202 0
73450702 sakt_coder C March 17, 2020, 3:17 a.m. OK Java 11 TESTS 14 202 0
73436153 Dukkha C March 16, 2020, 7:29 p.m. OK Java 11 TESTS 14 202 0
73160450 WaheguruAnurag C March 13, 2020, 5:41 p.m. OK Java 11 TESTS 14 202 0
73794127 Nirav412000 C March 20, 2020, 12:59 p.m. OK Java 8 TESTS 14 109 0
73329286 Pranav194 C March 15, 2020, 11:32 a.m. OK Java 8 TESTS 14 109 0
73196397 darshan287 C March 14, 2020, 8:04 a.m. OK Java 8 TESTS 14 109 0
73185325 lyfljw C March 14, 2020, 4:41 a.m. OK Java 8 TESTS 14 109 0
73106094 bleh0.5 C March 12, 2020, 9:29 p.m. OK Java 8 TESTS 14 109 0
73095511 nagabhushan C March 12, 2020, 6:04 p.m. OK Java 8 TESTS 14 109 0
73083011 masterbios C March 12, 2020, 3:27 p.m. OK Java 8 TESTS 14 109 0
73816814 LemonPudding C March 20, 2020, 5:36 p.m. OK Java 8 TESTS 14 124 0
73609950 TWO_POINTER C March 18, 2020, 9:35 p.m. OK Java 8 TESTS 14 124 0
73576061 kocko C March 18, 2020, 1:50 p.m. OK Java 8 TESTS 14 124 0
73104911 jhonber C March 12, 2020, 8:58 p.m. OK JavaScript TESTS 14 77 1536000
73114533 Spheniscine C March 13, 2020, 2:53 a.m. OK Kotlin TESTS 14 156 0
73151972 truckski C March 13, 2020, 3:57 p.m. OK Kotlin TESTS 14 202 0
73444600 Benq C March 16, 2020, 11:05 p.m. OK Kotlin TESTS 14 202 0
73191134 YESMAths C March 14, 2020, 6:35 a.m. OK Kotlin TESTS 14 202 0
73173437 ostroumov C March 13, 2020, 8:56 p.m. OK Kotlin TESTS 14 202 0
73085492 SlavaG C March 12, 2020, 3:51 p.m. OK Kotlin TESTS 14 202 0
73128784 KanhuKeNanu C March 13, 2020, 8:19 a.m. OK Kotlin TESTS 14 217 0
73161270 DisPony C March 13, 2020, 5:50 p.m. OK Kotlin TESTS 14 218 0
73128244 ZakoylovIlya C March 13, 2020, 8:08 a.m. OK Kotlin TESTS 14 233 0
73110571 Smakson C March 13, 2020, 12:22 a.m. OK Kotlin TESTS 14 249 0
73300936 treasuryonly C March 15, 2020, 4:11 a.m. OK Mono C# TESTS 14 46 1024000
73185695 shy3205 C March 14, 2020, 4:51 a.m. OK Mono C# TESTS 14 61 3174400
73086354 nikitos111 C March 12, 2020, 4 p.m. OK Mono C# TESTS 14 93 1126400
73127435 ansergeyg C March 13, 2020, 7:52 a.m. OK Mono C# TESTS 14 108 819200
73090853 Ruban_Denic C March 12, 2020, 5:01 p.m. OK Mono C# TESTS 14 108 819200
73791249 bvsrajeev C March 20, 2020, 12:23 p.m. OK Mono C# TESTS 14 108 1331200
73539057 de_loo C March 18, 2020, 5:02 a.m. OK Mono C# TESTS 14 109 819200
73502789 loginov C March 17, 2020, 4:03 p.m. OK Mono C# TESTS 14 109 819200
73161646 TRR C March 13, 2020, 5:54 p.m. OK Mono C# TESTS 14 109 819200
73172307 geronimo00 C March 13, 2020, 8:32 p.m. OK Mono C# TESTS 14 124 3174400
73202300 vjudge5 C March 14, 2020, 9:37 a.m. OK MS C++ TESTS 14 30 204800
73218299 vjudge3 C March 14, 2020, 1:38 p.m. OK MS C++ TESTS 14 30 204800
73795231 vjudge4 C March 20, 2020, 1:13 p.m. OK MS C++ TESTS 14 30 204800
73796236 vjudge3 C March 20, 2020, 1:24 p.m. OK MS C++ TESTS 14 30 204800
73571789 vjudge3 C March 18, 2020, 1:01 p.m. OK MS C++ TESTS 14 31 204800
73235564 vjudge5 C March 14, 2020, 2:50 p.m. OK MS C++ TESTS 14 31 204800
73231015 vjudge5 C March 14, 2020, 2:44 p.m. OK MS C++ TESTS 14 31 204800
73232369 vjudge4 C March 14, 2020, 2:45 p.m. OK MS C++ TESTS 14 31 204800
73535828 acrux C March 18, 2020, 3:35 a.m. OK MS C++ TESTS 14 31 204800
73200928 vjudge5 C March 14, 2020, 9:17 a.m. OK MS C++ TESTS 14 31 204800
73396414 vjudge3 C March 16, 2020, 9:49 a.m. OK MS C++ 2017 TESTS 14 30 1945600
73491749 the_most_vegetable C March 17, 2020, 1:52 p.m. OK MS C++ 2017 TESTS 14 31 204800
73572411 vjudge3 C March 18, 2020, 1:08 p.m. OK MS C++ 2017 TESTS 14 31 204800
73113705 vjudge4 C March 13, 2020, 2:26 a.m. OK MS C++ 2017 TESTS 14 31 614400
73182113 grol666 C March 14, 2020, 2:55 a.m. OK MS C++ 2017 TESTS 14 31 614400
73127805 rhksdn6227 C March 13, 2020, 8 a.m. OK MS C++ 2017 TESTS 14 31 614400
73195050 Chinmize C March 14, 2020, 7:42 a.m. OK MS C++ 2017 TESTS 14 46 0
73501029 sannick01 C March 17, 2020, 3:41 p.m. OK MS C++ 2017 TESTS 14 46 204800
73180194 123m C March 14, 2020, 1:29 a.m. OK MS C++ 2017 TESTS 14 46 512000
73155048 salehsargolzaee C March 13, 2020, 4:38 p.m. OK MS C++ 2017 TESTS 14 46 614400
73444207 Harolinch C March 16, 2020, 10:50 p.m. OK Node.js TESTS 14 280 10649600
73444117 Harolinch C March 16, 2020, 10:47 p.m. OK Node.js TESTS 14 311 10547200
73096844 PepegaClown C March 12, 2020, 6:26 p.m. OK PascalABC.NET TESTS 14 264 204800
73477773 OlyaKoza C March 17, 2020, 11:28 a.m. OK PHP TESTS 14 62 12185600
73097096 mayakin C March 12, 2020, 6:30 p.m. OK PHP TESTS 14 77 409600
73478554 OlyaKoza C March 17, 2020, 11:38 a.m. OK PHP TESTS 14 93 12185600
73210981 yumtam C March 14, 2020, 11:54 a.m. OK PyPy 2 TESTS 14 155 1945600
73090160 apoorv1999 C March 12, 2020, 4:51 p.m. OK PyPy 2 TESTS 14 187 1536000
73345420 elvar333 C March 15, 2020, 3 p.m. OK PyPy 2 TESTS 14 249 5529600
73559147 jolt.tks C March 18, 2020, 10:16 a.m. OK PyPy 2 TESTS 14 295 1331200
73417828 shehebe C March 16, 2020, 3:08 p.m. OK PyPy 2 TESTS 14 295 3276800
73104756 GTrigger C March 12, 2020, 8:54 p.m. OK PyPy 2 TESTS 14 311 7372800
73314855 peijinz C March 15, 2020, 8:06 a.m. OK PyPy 2 TESTS 14 326 4403200
73104836 GTrigger C March 12, 2020, 8:56 p.m. OK PyPy 2 TESTS 14 327 7270400
73529091 panamavan C March 17, 2020, 11:17 p.m. OK PyPy 3 TESTS 14 170 8601600
73124396 koptev C March 13, 2020, 6:49 a.m. OK PyPy 3 TESTS 14 171 3993600
73797887 Shroudedwolf5 C March 20, 2020, 1:42 p.m. OK PyPy 3 TESTS 14 171 8601600
73105448 vcubingx C March 12, 2020, 9:12 p.m. OK PyPy 3 TESTS 14 186 4608000
73085272 tiwari0000 C March 12, 2020, 3:48 p.m. OK PyPy 3 TESTS 14 186 6656000
73146104 takakin C March 13, 2020, 2:44 p.m. OK PyPy 3 TESTS 14 187 4710400
73091748 devesh1102 C March 12, 2020, 5:13 p.m. OK PyPy 3 TESTS 14 187 7475200
73175477 m.ni C March 13, 2020, 9:50 p.m. OK PyPy 3 TESTS 14 202 4505600
73081511 suri78 C March 12, 2020, 3:14 p.m. OK PyPy 3 TESTS 14 202 7475200
73163116 apoorvwatsky C March 13, 2020, 6:13 p.m. OK PyPy 3 TESTS 14 202 7987200
73580300 neuhq_haha C March 18, 2020, 2:39 p.m. OK Python 2 TESTS 14 202 512000
73104818 GTrigger C March 12, 2020, 8:56 p.m. OK Python 2 TESTS 14 265 12902400
73104785 GTrigger C March 12, 2020, 8:55 p.m. OK Python 2 TESTS 14 280 12595200
73597700 saimoncse C March 18, 2020, 6:05 p.m. OK Python 3 TESTS 14 124 1843200
73319015 0_andrey_0 C March 15, 2020, 9:07 a.m. OK Python 3 TESTS 14 170 1126400
73148444 __B1ank__ C March 13, 2020, 3:12 p.m. OK Python 3 TESTS 14 171 4608000
73098063 bhavik07 C March 12, 2020, 6:45 p.m. OK Python 3 TESTS 14 186 819200
73120998 ss7890 C March 13, 2020, 5:43 a.m. OK Python 3 TESTS 14 186 921600
73465334 Abhinav_Verma C March 17, 2020, 8:21 a.m. OK Python 3 TESTS 14 186 2662400
73586846 Sahitya02 C March 18, 2020, 3:57 p.m. OK Python 3 TESTS 14 186 2764800
73323157 sonukajla C March 15, 2020, 10:07 a.m. OK Python 3 TESTS 14 186 2867200
73083850 eugalt C March 12, 2020, 3:34 p.m. OK Python 3 TESTS 14 186 2867200
73082520 misqwerty C March 12, 2020, 3:22 p.m. OK Python 3 TESTS 14 186 2867200
73107395 TryUntilDeath C March 12, 2020, 10:09 p.m. OK Ruby TESTS 14 187 614400
73789832 the.shank C March 20, 2020, 12:08 p.m. OK Rust TESTS 14 31 2969600
73789093 the.shank C March 20, 2020, 11:58 a.m. OK Rust TESTS 14 46 2048000
73789950 the.shank C March 20, 2020, 12:08 p.m. OK Rust TESTS 14 109 2969600

remove filters

Back to search problems