Codeforces Round 849 (Div. 4)

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
1791 Codeforces Round 849 (Div. 4) FINISHED False 8700 61831463 Feb. 3, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 46154 ) B Following Directions PROGRAMMING geometry implementation

B'Alperen is standing at the point (0,0) . He is given a string s of length n and performs n moves. The i -th move is as follows: The first line of the input contains an integer t ( 1 <= q t <= q 1000 ) -- the number of testcases. The first line of each test case contains an integer n ( 1 <= q n <= q 50 ) -- the length of the string. The second line of each test case contains a string s of length n consisting of characters texttt{L} , texttt{R} , texttt{D} , and texttt{U} , denoting the moves Alperen makes. For each test case, output "YES" (without quotes) if Alperen passes the candy, and "NO" (without quotes) otherwise. You can output the answer in any case (for example, the strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive answer). In the first test case, Alperen follows the path (0,0) overset{ texttt{U}}{ to} (0,1) overset{ texttt{U}}{ to} (0,2) overset{ texttt{U}}{ to} (0,3) overset{ texttt{R}}{ to} (1,3) overset{ texttt{D}}{ to} (1,2) overset{ texttt{D}}{ to} color{green}{ mathbf{(1,1)}} overset{ texttt{L}}{ to} (0,1). Note that Alperen doesn 't need to end at the candy 's location of (1,1) , he just needs to pass it at some point. In the second test case, Alperen follows the path (0,0) overset{ texttt{U}}{ to} (0,1) overset{ texttt{R}}{ to} color{green}{ mathbf{(1,1)}}. In the third test case, Alperen follows the path (0,0) overset{ texttt{R}}{ to} (1,0) overset{ texttt{R}}{ to} (2,0) overset{ texttt{R}}{ to} (3,0) overset{ texttt{U}}{ to} (3,1) overset{ texttt{U}}{ to} (3,2) overset{ texttt{D}}{ to} (3,1) overset{ texttt{D}}{ to} (3,0) overset{ texttt{D}}{ to} (3,-1). In the fourth test case, Alperen follows the path (0,0) overset{ texttt{L}}{ to} (-1,0) overset{ texttt{L}}{ to} (-2,0) overset{ texttt{L}}{ to} (-3,0). '...

Tutorials

112282

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
192052044 joaoandreotti B Feb. 3, 2023, 6:05 p.m. OK C# 10 TESTS 3 46 9011200
192065590 alaa_wael B Feb. 3, 2023, 7:52 p.m. OK Clang++17 Diagnostics TESTS 3 77 716800
192076847 amany_al-sayed B Feb. 3, 2023, 10:15 p.m. OK Clang++20 Diagnostics TESTS 3 46 0
192049026 jaikritsanandiya B Feb. 3, 2023, 5:47 p.m. OK GNU C11 TESTS 3 15 0
192051930 rf_104 B Feb. 3, 2023, 6:04 p.m. OK GNU C11 TESTS 3 15 0
192073148 c0derro B Feb. 3, 2023, 9:18 p.m. OK GNU C11 TESTS 3 15 0
192061005 TingYun B Feb. 3, 2023, 7:10 p.m. OK GNU C11 TESTS 3 15 3686400
192087353 wjx12 B Feb. 4, 2023, 2:13 a.m. OK GNU C11 TESTS 3 15 3686400
192094809 sxjlh B Feb. 4, 2023, 4:14 a.m. OK GNU C11 TESTS 3 15 3686400
192100298 vjudge1 B Feb. 4, 2023, 5:21 a.m. OK GNU C11 TESTS 3 15 3686400
192103956 azizulislamch B Feb. 4, 2023, 5:55 a.m. OK GNU C11 TESTS 3 15 3686400
192064056 harshit16 B Feb. 3, 2023, 7:37 p.m. OK GNU C11 TESTS 3 15 3686400
192085549 KL_2100040105 B Feb. 4, 2023, 1:38 a.m. OK GNU C11 TESTS 3 15 3686400
192074147 takeshi_kondu B Feb. 3, 2023, 9:32 p.m. OK GNU C++14 TESTS 3 0 0
192070973 kausar_ahamed B Feb. 3, 2023, 8:51 p.m. OK GNU C++14 TESTS 3 0 0
192075364 nukelauncher B Feb. 3, 2023, 9:50 p.m. OK GNU C++14 TESTS 3 0 0
192101022 Steve_Tu B Feb. 4, 2023, 5:28 a.m. OK GNU C++14 TESTS 3 0 1024000
192100877 atharvaayir B Feb. 4, 2023, 5:26 a.m. OK GNU C++14 TESTS 3 0 1024000
192100830 subhrajitmukherjee3 B Feb. 4, 2023, 5:26 a.m. OK GNU C++14 TESTS 3 0 1024000
192097098 yhy2004 B Feb. 4, 2023, 4:46 a.m. OK GNU C++14 TESTS 3 0 1024000
192104527 diguo B Feb. 4, 2023, 6 a.m. OK GNU C++14 TESTS 3 0 1024000
192103044 noir2003 B Feb. 4, 2023, 5:47 a.m. OK GNU C++14 TESTS 3 0 1024000
192101801 mvmanekia2002 B Feb. 4, 2023, 5:35 a.m. OK GNU C++14 TESTS 3 0 1024000
192066898 Mohamed_AbdElkreem1 B Feb. 3, 2023, 8:05 p.m. OK GNU C++17 TESTS 3 0 0
192067511 hassanmohed590 B Feb. 3, 2023, 8:11 p.m. OK GNU C++17 TESTS 3 0 0
192074368 Patompong B Feb. 3, 2023, 9:35 p.m. OK GNU C++17 TESTS 3 0 0
192075110 HelalMajeed B Feb. 3, 2023, 9:46 p.m. OK GNU C++17 TESTS 3 0 0
192078792 Nouri_55 B Feb. 3, 2023, 10:52 p.m. OK GNU C++17 TESTS 3 0 0
192080075 DaviHenrique B Feb. 3, 2023, 11:20 p.m. OK GNU C++17 TESTS 3 0 0
192080580 Deft1592 B Feb. 3, 2023, 11:33 p.m. OK GNU C++17 TESTS 3 0 0
192061761 eshtiakhasan B Feb. 3, 2023, 7:17 p.m. OK GNU C++17 TESTS 3 0 0
192058207 Kazi_Fahmi B Feb. 3, 2023, 6:48 p.m. OK GNU C++17 TESTS 3 0 0
192057626 aviral_2393 B Feb. 3, 2023, 6:43 p.m. OK GNU C++17 TESTS 3 0 0
192102741 Ash_Dr B Feb. 4, 2023, 5:44 a.m. OK GNU C++17 (64) TESTS 3 0 1228800
192104080 arnold27 B Feb. 4, 2023, 5:56 a.m. OK GNU C++17 (64) TESTS 3 0 1228800
192100080 vasubeladiya B Feb. 4, 2023, 5:19 a.m. OK GNU C++17 (64) TESTS 3 0 1228800
192097364 Frodoo B Feb. 4, 2023, 4:49 a.m. OK GNU C++17 (64) TESTS 3 0 1228800
192092492 yl_neo B Feb. 4, 2023, 3:36 a.m. OK GNU C++17 (64) TESTS 3 0 1228800
192087286 kuchibi B Feb. 4, 2023, 2:11 a.m. OK GNU C++17 (64) TESTS 3 0 1228800
192084900 EduardoBrito B Feb. 4, 2023, 1:24 a.m. OK GNU C++17 (64) TESTS 3 0 1228800
192084768 wcwu B Feb. 4, 2023, 1:21 a.m. OK GNU C++17 (64) TESTS 3 0 1228800
192083840 _Nayru B Feb. 4, 2023, 12:59 a.m. OK GNU C++17 (64) TESTS 3 0 1228800
192080530 Nouri_55 B Feb. 3, 2023, 11:32 p.m. OK GNU C++17 (64) TESTS 3 0 1228800
192061838 virat1906 B Feb. 3, 2023, 7:18 p.m. OK GNU C++20 (64) TESTS 3 0 0
192065211 Zena_Hossam B Feb. 3, 2023, 7:48 p.m. OK GNU C++20 (64) TESTS 3 0 0
192065509 7oodaaa B Feb. 3, 2023, 7:51 p.m. OK GNU C++20 (64) TESTS 3 0 0
192067541 aufannn B Feb. 3, 2023, 8:11 p.m. OK GNU C++20 (64) TESTS 3 0 0
192068667 gupta_gopal B Feb. 3, 2023, 8:23 p.m. OK GNU C++20 (64) TESTS 3 0 0
192070048 ssshanto B Feb. 3, 2023, 8:39 p.m. OK GNU C++20 (64) TESTS 3 0 0
192074741 Kakashi_ B Feb. 3, 2023, 9:41 p.m. OK GNU C++20 (64) TESTS 3 0 0
192076839 Lion_Heart B Feb. 3, 2023, 10:15 p.m. OK GNU C++20 (64) TESTS 3 0 0
192077016 Dhliv B Feb. 3, 2023, 10:18 p.m. OK GNU C++20 (64) TESTS 3 0 0
192079702 _3bdo B Feb. 3, 2023, 11:11 p.m. OK GNU C++20 (64) TESTS 3 0 0
192051889 dimaglushkov B Feb. 3, 2023, 6:04 p.m. OK Go TESTS 3 15 102400
192079092 meinego B Feb. 3, 2023, 10:59 p.m. OK Go TESTS 3 15 18227200
192087861 july_tang B Feb. 4, 2023, 2:21 a.m. OK Go TESTS 3 31 18227200
192082424 user123 B Feb. 4, 2023, 12:23 a.m. OK Go TESTS 3 186 18329600
192055129 EdwardoSunny B Feb. 3, 2023, 6:25 p.m. OK Java 11 TESTS 3 171 24473600
192100305 Edge_Tree B Feb. 4, 2023, 5:21 a.m. OK Java 11 TESTS 3 171 24576000
192097462 white_harmony B Feb. 4, 2023, 4:50 a.m. OK Java 11 TESTS 3 171 24883200
192097078 Anmol081202 B Feb. 4, 2023, 4:45 a.m. OK Java 11 TESTS 3 186 24576000
192093604 yudi23 B Feb. 4, 2023, 3:54 a.m. OK Java 11 TESTS 3 187 24678400
192068120 phoenix_46 B Feb. 3, 2023, 8:17 p.m. OK Java 11 TESTS 3 202 25292800
192085113 hieucode1102 B Feb. 4, 2023, 1:29 a.m. OK Java 11 TESTS 3 202 25292800
192051009 youssef_emad19 B Feb. 3, 2023, 5:58 p.m. OK Java 11 TESTS 3 202 25292800
192049154 okmijn B Feb. 3, 2023, 5:47 p.m. OK Java 11 TESTS 3 202 25292800
192068044 raushancrj2015 B Feb. 3, 2023, 8:17 p.m. OK Java 11 TESTS 3 217 25190400
192099473 Mustela_Erminea B Feb. 4, 2023, 5:13 a.m. OK Java 17 TESTS 3 139 40243200
192099219 GooseGoop B Feb. 4, 2023, 5:10 a.m. OK Java 17 TESTS 3 171 40345600
192085192 burning_summer B Feb. 4, 2023, 1:31 a.m. OK Java 17 TESTS 3 186 40140800
192091282 sauravmandal B Feb. 4, 2023, 3:15 a.m. OK Java 17 TESTS 3 187 40448000
192071378 bruce_x001 B Feb. 3, 2023, 8:55 p.m. OK Java 17 TESTS 3 202 716800
192089526 izano B Feb. 4, 2023, 2:47 a.m. OK Java 17 TESTS 3 202 40448000
192063103 rated21 B Feb. 3, 2023, 7:29 p.m. OK Java 17 TESTS 3 218 39116800
192066268 Nas B Feb. 3, 2023, 7:58 p.m. OK Java 17 TESTS 3 234 716800
192053117 BrilliantMate B Feb. 3, 2023, 6:12 p.m. OK Java 17 TESTS 3 234 39628800
192048776 Priyanshu8797 B Feb. 3, 2023, 5:45 p.m. OK Java 17 TESTS 3 249 102400
192051339 Zicode B Feb. 3, 2023, 6 p.m. OK Java 8 TESTS 3 93 18841600
192051626 Heisenberg_1 B Feb. 3, 2023, 6:02 p.m. OK Java 8 TESTS 3 108 18841600
192050962 Juhaied_nabid B Feb. 3, 2023, 5:58 p.m. OK Java 8 TESTS 3 109 0
192057770 Aika426 B Feb. 3, 2023, 6:44 p.m. OK Java 8 TESTS 3 109 18636800
192093757 chenyi040901 B Feb. 4, 2023, 3:57 a.m. OK Java 8 TESTS 3 124 19660800
192055584 sahassaxena123 B Feb. 3, 2023, 6:28 p.m. OK Java 8 TESTS 3 124 19660800
192050427 omarosama2114 B Feb. 3, 2023, 5:55 p.m. OK Java 8 TESTS 3 155 18636800
192064632 Kay0 B Feb. 3, 2023, 7:43 p.m. OK Kotlin 1.6 TESTS 3 187 24780800
192086895 linxiaotian B Feb. 4, 2023, 2:04 a.m. OK Kotlin 1.6 TESTS 3 187 26624000
192104492 harshraj9988 B Feb. 4, 2023, 5:59 a.m. OK Kotlin 1.7 TESTS 3 326 90931200
192098522 SoleilW B Feb. 4, 2023, 5:02 a.m. OK MS C++ 2017 TESTS 3 0 1126400
192086792 Prycom B Feb. 4, 2023, 2:02 a.m. OK MS C++ 2017 TESTS 3 15 1126400
192085136 GANDOR B Feb. 4, 2023, 1:29 a.m. OK MS C++ 2017 TESTS 3 15 1126400
192070584 MalekAlsaudi B Feb. 3, 2023, 8:46 p.m. OK MS C++ 2017 TESTS 3 15 1126400
192069191 aidnitra B Feb. 3, 2023, 8:29 p.m. OK MS C++ 2017 TESTS 3 15 1126400
192058633 Peter_SafwatHBK B Feb. 3, 2023, 6:51 p.m. OK MS C++ 2017 TESTS 3 15 1126400
192055163 1_shivam B Feb. 3, 2023, 6:25 p.m. OK MS C++ 2017 TESTS 3 15 1126400
192051016 vismay_walde B Feb. 3, 2023, 5:58 p.m. OK MS C++ 2017 TESTS 3 15 1126400
192066050 suki05 B Feb. 3, 2023, 7:56 p.m. OK MS C++ 2017 TESTS 3 31 0
192069734 Mansurbek B Feb. 3, 2023, 8:36 p.m. OK PyPy 3 TESTS 3 124 20070400
192095256 Yash_Nandwana B Feb. 4, 2023, 4:20 a.m. OK PyPy 3 TESTS 3 155 22528000
192098039 JUBHAI B Feb. 4, 2023, 4:57 a.m. OK PyPy 3 TESTS 3 155 23347200
192061807 zx4r B Feb. 3, 2023, 7:18 p.m. OK PyPy 3 TESTS 3 171 22937600
192059565 Mohamed_Hamed B Feb. 3, 2023, 6:58 p.m. OK PyPy 3 TESTS 3 248 10035200
192072840 slickk B Feb. 3, 2023, 9:14 p.m. OK PyPy 3-64 TESTS 3 77 2969600
192081933 crapcode B Feb. 4, 2023, 12:10 a.m. OK PyPy 3-64 TESTS 3 77 30720000
192101750 meat124 B Feb. 4, 2023, 5:34 a.m. OK PyPy 3-64 TESTS 3 77 32563200
192059390 D33pak007 B Feb. 3, 2023, 6:57 p.m. OK PyPy 3-64 TESTS 3 93 28774400
192062400 HaisTous B Feb. 3, 2023, 7:23 p.m. OK PyPy 3-64 TESTS 3 93 33177600
192087364 zjcccc B Feb. 4, 2023, 2:13 a.m. OK PyPy 3-64 TESTS 3 93 33484800
192086881 sk003 B Feb. 4, 2023, 2:04 a.m. OK PyPy 3-64 TESTS 3 109 35123200
192088106 wwwwzhh B Feb. 4, 2023, 2:25 a.m. OK PyPy 3-64 TESTS 3 109 168140800
192063232 lucbarn B Feb. 3, 2023, 7:31 p.m. OK PyPy 3-64 TESTS 3 124 35225600
192058539 CaptainUknown B Feb. 3, 2023, 6:50 p.m. OK PyPy 3-64 TESTS 3 140 6963200
192073220 Abraham_Shimekt B Feb. 3, 2023, 9:19 p.m. OK Python 3 TESTS 3 31 4505600
192066547 Wwwyssa B Feb. 3, 2023, 8:01 p.m. OK Python 3 TESTS 3 31 4505600
192066999 omark1212 B Feb. 3, 2023, 8:06 p.m. OK Python 3 TESTS 3 46 0
192065867 vivek_1809 B Feb. 3, 2023, 7:54 p.m. OK Python 3 TESTS 3 46 0
192100775 dragonball_2002 B Feb. 4, 2023, 5:25 a.m. OK Python 3 TESTS 3 46 4505600
192100622 3rdEye18 B Feb. 4, 2023, 5:24 a.m. OK Python 3 TESTS 3 46 4505600
192099263 saikumar1606 B Feb. 4, 2023, 5:11 a.m. OK Python 3 TESTS 3 46 4505600
192096910 cse20at1a0550 B Feb. 4, 2023, 4:43 a.m. OK Python 3 TESTS 3 46 4505600
192093436 Shahruk B Feb. 4, 2023, 3:52 a.m. OK Python 3 TESTS 3 46 4505600
192084413 Sobr1k B Feb. 4, 2023, 1:13 a.m. OK Python 3 TESTS 3 46 4505600
192070995 Hyrulia B Feb. 3, 2023, 8:51 p.m. OK Rust 2021 TESTS 3 0 1228800
192054258 Bore_lis B Feb. 3, 2023, 6:19 p.m. OK Rust 2021 TESTS 3 15 0
192057353 a1000 B Feb. 3, 2023, 6:41 p.m. OK Rust 2021 TESTS 3 15 1228800
192080439 vjudge4 B Feb. 3, 2023, 11:30 p.m. OK Rust 2021 TESTS 3 15 1331200
192059797 franv B Feb. 3, 2023, 7 p.m. OK Rust 2021 TESTS 3 30 1228800

remove filters

Back to search problems