Codeforces Round 699 (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
1481 Codeforces Round 699 (Div. 2) FINISHED False 7200 124817110 Feb. 5, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 25080 ) A Space Navigation PROGRAMMING greedy implementation strings

B'You were dreaming that you are traveling to a planet named Planetforces on your personal spaceship. Unfortunately, its piloting system was corrupted and now you need to fix it in order to reach Planetforces. Space can be represented as the XY plane. You are starting at point (0, 0) , and Planetforces is located in point (p_x, p_y) . The piloting system of your spaceship follows its list of orders which can be represented as a string s . The system reads s from left to right. Suppose you are at point (x, y) and current order is s_i : Since string s could be corrupted, there is a possibility that you won 't reach Planetforces in the end. Fortunately, you can delete some orders from s but you can 't change their positions. Can you delete several orders (possibly, zero) from s in such a way, that you 'll reach Planetforces after the system processes all orders? The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. Each test case consists of two lines. The first line in each test case contains two integers p_x and p_y ( -10^5 <= p_x, p_y <= 10^5 ; (p_x, p_y) neq (0, 0) ) -- the coordinates of Planetforces (p_x, p_y) . The second line contains the string s ( 1 <= |s| <= 10^5 : |s| is the length of string s ) -- the list of orders. It is guaranteed that the sum of |s| over all test cases does not exceed 10^5 . For each test case, print "YES" if you can delete several orders (possibly, zero) from s in such a way, that you 'll reach Planetforces. Otherwise, print "NO". You can print each letter in any case (upper or lower). In the first case, you don 't need to modify s , since the given s will bring you to Planetforces. In the second case, you can delete orders s_2 , s_3 , s_4 , s_6 , s_7 and s_8 , so s becomes equal to "UR". In the third test '...

Tutorials

Codeforces Round #699 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
106635527 Shawn-Yang A Feb. 6, 2021, 2:14 a.m. OK Clang++17 Diagnostics TESTS 8 46 102400
106632256 Robert_Luo gongmingtao luojiayang A Feb. 6, 2021, 12:15 a.m. OK FPC TESTS 8 15 1126400
106604877 xudong A Feb. 5, 2021, 4:29 p.m. OK GNU C11 TESTS 8 15 0
106635795 Ryukendo_18 A Feb. 6, 2021, 2:22 a.m. OK GNU C11 TESTS 8 15 0
106623916 XLR8_07 A Feb. 5, 2021, 7:47 p.m. OK GNU C11 TESTS 8 15 102400
106638440 Raj_kumar_ray A Feb. 6, 2021, 3:34 a.m. OK GNU C11 TESTS 8 15 102400
106611177 xxlonewolf69 A Feb. 5, 2021, 5:22 p.m. OK GNU C11 TESTS 8 15 102400
106606449 hnust_liuzhenwu A Feb. 5, 2021, 4:32 p.m. OK GNU C11 TESTS 8 15 102400
106607424 Darkened_Sky A Feb. 5, 2021, 4:34 p.m. OK GNU C11 TESTS 8 15 102400
106611397 SajibKC_19 A Feb. 5, 2021, 5:23 p.m. OK GNU C11 TESTS 8 15 204800
106640666 NinjaTurtle A Feb. 6, 2021, 4:22 a.m. OK GNU C11 TESTS 8 30 102400
106615496 N0USH1N A Feb. 5, 2021, 5:55 p.m. OK GNU C11 TESTS 8 30 102400
106631277 sibo A Feb. 5, 2021, 11:34 p.m. OK GNU C++11 TESTS 8 0 0
106635228 Stewart A Feb. 6, 2021, 2:05 a.m. OK GNU C++11 TESTS 8 15 0
106636100 qdnoip A Feb. 6, 2021, 2:32 a.m. OK GNU C++11 TESTS 8 15 0
106644384 forlight A Feb. 6, 2021, 5:30 a.m. OK GNU C++11 TESTS 8 15 102400
106644786 tremble A Feb. 6, 2021, 5:36 a.m. OK GNU C++11 TESTS 8 15 102400
106636011 qdnoip A Feb. 6, 2021, 2:29 a.m. OK GNU C++11 TESTS 8 15 102400
106638696 a1214034447 A Feb. 6, 2021, 3:40 a.m. OK GNU C++11 TESTS 8 15 102400
106639140 DJRzjl A Feb. 6, 2021, 3:50 a.m. OK GNU C++11 TESTS 8 15 102400
106642438 ToNTboy A Feb. 6, 2021, 4:59 a.m. OK GNU C++11 TESTS 8 15 102400
106643101 bkifhr8 A Feb. 6, 2021, 5:11 a.m. OK GNU C++11 TESTS 8 15 102400
106636918 760041253 A Feb. 6, 2021, 2:57 a.m. OK GNU C++14 TESTS 8 15 102400
106611242 nitlala A Feb. 5, 2021, 5:22 p.m. OK GNU C++14 TESTS 8 15 102400
106631480 _elgir A Feb. 5, 2021, 11:43 p.m. OK GNU C++14 TESTS 8 15 102400
106643190 KIshanK A Feb. 6, 2021, 5:12 a.m. OK GNU C++14 TESTS 8 15 307200
106642483 Nahid12345 A Feb. 6, 2021, 5 a.m. OK GNU C++14 TESTS 8 15 307200
106646433 _prince_123 A Feb. 6, 2021, 5:58 a.m. OK GNU C++14 TESTS 8 15 307200
106641370 lucifer2022 A Feb. 6, 2021, 4:37 a.m. OK GNU C++14 TESTS 8 15 307200
106641686 jainshub755 A Feb. 6, 2021, 4:43 a.m. OK GNU C++14 TESTS 8 15 307200
106645810 akshat04 A Feb. 6, 2021, 5:50 a.m. OK GNU C++14 TESTS 8 15 307200
106643585 sher_locked99 A Feb. 6, 2021, 5:18 a.m. OK GNU C++14 TESTS 8 15 307200
106636475 The_Human A Feb. 6, 2021, 2:43 a.m. OK GNU C++17 TESTS 8 15 102400
106633797 _int_me A Feb. 6, 2021, 1:14 a.m. OK GNU C++17 TESTS 8 15 102400
106632302 johnchen902 A Feb. 6, 2021, 12:17 a.m. OK GNU C++17 TESTS 8 15 102400
106628669 PeetaCalou A Feb. 5, 2021, 9:51 p.m. OK GNU C++17 TESTS 8 15 102400
106614946 shafiq_02 A Feb. 5, 2021, 5:50 p.m. OK GNU C++17 TESTS 8 15 102400
106637665 Hex1234567 A Feb. 6, 2021, 3:17 a.m. OK GNU C++17 TESTS 8 15 102400
106629537 Nawar1912 A Feb. 5, 2021, 10:19 p.m. OK GNU C++17 TESTS 8 15 204800
106645738 wizard_18 A Feb. 6, 2021, 5:49 a.m. OK GNU C++17 TESTS 8 15 307200
106646914 Rascalam A Feb. 6, 2021, 6:04 a.m. OK GNU C++17 TESTS 8 15 307200
106645196 partha_pc A Feb. 6, 2021, 5:41 a.m. OK GNU C++17 TESTS 8 15 307200
106639724 loenvom A Feb. 6, 2021, 4:02 a.m. OK GNU C++17 (64) TESTS 8 15 0
106638556 vjudge3 A Feb. 6, 2021, 3:37 a.m. OK GNU C++17 (64) TESTS 8 15 102400
106638899 AkshitDh A Feb. 6, 2021, 3:45 a.m. OK GNU C++17 (64) TESTS 8 15 307200
106641083 i_love_vanshita A Feb. 6, 2021, 4:31 a.m. OK GNU C++17 (64) TESTS 8 15 307200
106641813 AMO5 A Feb. 6, 2021, 4:46 a.m. OK GNU C++17 (64) TESTS 8 15 307200
106642255 changinmong10 A Feb. 6, 2021, 4:55 a.m. OK GNU C++17 (64) TESTS 8 15 307200
106644995 N00Borz A Feb. 6, 2021, 5:38 a.m. OK GNU C++17 (64) TESTS 8 15 307200
106645811 rajath_55 A Feb. 6, 2021, 5:50 a.m. OK GNU C++17 (64) TESTS 8 15 307200
106646701 Binary_AJ A Feb. 6, 2021, 6:02 a.m. OK GNU C++17 (64) TESTS 8 15 307200
106638508 DanielMontes A Feb. 6, 2021, 3:36 a.m. OK GNU C++17 (64) TESTS 8 15 307200
106626444 Hasker A Feb. 5, 2021, 8:40 p.m. OK Haskell TESTS 8 30 2252800
106640137 mayankroy A Feb. 6, 2021, 4:10 a.m. OK Java 11 TESTS 8 171 0
106640806 aym_05 A Feb. 6, 2021, 4:25 a.m. OK Java 11 TESTS 8 171 0
106620799 VishuTomar A Feb. 5, 2021, 7 p.m. OK Java 11 TESTS 8 171 0
106613243 _3019_ A Feb. 5, 2021, 5:35 p.m. OK Java 11 TESTS 8 171 0
106610342 gssakash A Feb. 5, 2021, 5:18 p.m. OK Java 11 TESTS 8 171 0
106639490 Deep55 A Feb. 6, 2021, 3:57 a.m. OK Java 11 TESTS 8 186 0
106610783 teenGraph A Feb. 5, 2021, 5:19 p.m. OK Java 11 TESTS 8 186 0
106639221 Sriram_Nuthi A Feb. 6, 2021, 3:51 a.m. OK Java 11 TESTS 8 186 0
106613110 PetrNguyen A Feb. 5, 2021, 5:34 p.m. OK Java 11 TESTS 8 202 0
106619722 Debojit219 A Feb. 5, 2021, 6:45 p.m. OK Java 11 TESTS 8 202 0
106614891 DemonSlayer18 A Feb. 5, 2021, 5:49 p.m. OK Java 8 TESTS 8 93 0
106635387 thebigjuicyd A Feb. 6, 2021, 2:10 a.m. OK Java 8 TESTS 8 93 0
106613514 Java A Feb. 5, 2021, 5:37 p.m. OK Java 8 TESTS 8 108 0
106621075 nandit A Feb. 5, 2021, 7:04 p.m. OK Java 8 TESTS 8 109 0
106632364 coolManit A Feb. 6, 2021, 12:20 a.m. OK Java 8 TESTS 8 109 0
106620392 arpit_c10992 A Feb. 5, 2021, 6:55 p.m. OK Java 8 TESTS 8 109 0
106645915 nithin_bharathi A Feb. 6, 2021, 5:51 a.m. OK Java 8 TESTS 8 109 0
106643091 Pranay2516 A Feb. 6, 2021, 5:11 a.m. OK Java 8 TESTS 8 109 0
106628358 dante1 A Feb. 5, 2021, 9:40 p.m. OK Java 8 TESTS 8 109 0
106624242 Youha A Feb. 5, 2021, 7:53 p.m. OK Java 8 TESTS 8 109 0
106633886 Spheniscine A Feb. 6, 2021, 1:18 a.m. OK Kotlin TESTS 8 109 0
106611043 catforce A Feb. 5, 2021, 5:21 p.m. OK Kotlin TESTS 8 140 0
106612080 koboshi A Feb. 5, 2021, 5:27 p.m. OK Kotlin TESTS 8 140 0
106630103 Sakagam1 A Feb. 5, 2021, 10:45 p.m. OK Kotlin TESTS 8 171 102400
106643481 yyeshell A Feb. 6, 2021, 5:17 a.m. OK MS C++ TESTS 8 15 307200
106621453 codmacian A Feb. 5, 2021, 7:09 p.m. OK MS C++ 2017 TESTS 8 15 204800
106639603 exode4 A Feb. 6, 2021, 3:59 a.m. OK MS C++ 2017 TESTS 8 15 204800
106623000 amitthecoder A Feb. 5, 2021, 7:33 p.m. OK MS C++ 2017 TESTS 8 15 204800
106617045 EGSAS A Feb. 5, 2021, 6:11 p.m. OK MS C++ 2017 TESTS 8 30 204800
106640557 TeraByte1024 A Feb. 6, 2021, 4:20 a.m. OK MS C++ 2017 TESTS 8 30 204800
106626845 ustaritz A Feb. 5, 2021, 8:52 p.m. OK MS C++ 2017 TESTS 8 31 204800
106639132 raghu395 A Feb. 6, 2021, 3:49 a.m. OK MS C++ 2017 TESTS 8 31 204800
106622778 amitthecoder A Feb. 5, 2021, 7:29 p.m. OK MS C++ 2017 TESTS 8 31 204800
106610947 ustaritz A Feb. 5, 2021, 5:20 p.m. OK MS C++ 2017 TESTS 8 31 204800
106605855 rudyDebil A Feb. 5, 2021, 4:31 p.m. OK MS C++ 2017 TESTS 8 31 204800
106623439 slackereva A Feb. 5, 2021, 7:40 p.m. OK .NET Core C# TESTS 8 77 716800
106630916 mban259 A Feb. 5, 2021, 11:20 p.m. OK .NET Core C# TESTS 8 93 1126400
106619654 rsFalse A Feb. 5, 2021, 6:44 p.m. OK Perl TESTS 8 46 102400
106640756 Jakhongir A Feb. 6, 2021, 4:24 a.m. OK PHP TESTS 8 31 0
106641426 MadinaN A Feb. 6, 2021, 4:38 a.m. OK PHP TESTS 8 31 409600
106612578 evoxtorm A Feb. 5, 2021, 5:30 p.m. OK PyPy 3 TESTS 8 108 1536000
106613876 J_Squared A Feb. 5, 2021, 5:40 p.m. OK PyPy 3 TESTS 8 109 3174400
106610722 Akhil_Rautela A Feb. 5, 2021, 5:19 p.m. OK PyPy 3 TESTS 8 124 1740800
106614181 Leggasick A Feb. 5, 2021, 5:43 p.m. OK PyPy 3 TESTS 8 124 2048000
106626598 Aakash89 A Feb. 5, 2021, 8:44 p.m. OK PyPy 3 TESTS 8 124 3481600
106617741 _aadiupadhyay_ A Feb. 5, 2021, 6:20 p.m. OK PyPy 3 TESTS 8 124 4608000
106629929 Tolob A Feb. 5, 2021, 10:37 p.m. OK PyPy 3 TESTS 8 124 5529600
106612835 pedastrian57 A Feb. 5, 2021, 5:32 p.m. OK PyPy 3 TESTS 8 124 69427200
106634229 arin17 A Feb. 6, 2021, 1:31 a.m. OK PyPy 3 TESTS 8 140 2764800
106630080 Tolob A Feb. 5, 2021, 10:44 p.m. OK PyPy 3 TESTS 8 155 3379200
106610896 hogrider A Feb. 5, 2021, 5:20 p.m. OK Python 3 TESTS 8 61 307200
106633970 smp A Feb. 6, 2021, 1:21 a.m. OK Python 3 TESTS 8 61 512000
106615939 mr_pkc A Feb. 5, 2021, 6 p.m. OK Python 3 TESTS 8 61 614400
106616678 Priyansh0312 A Feb. 5, 2021, 6:07 p.m. OK Python 3 TESTS 8 62 307200
106634865 DarkHeart861 A Feb. 6, 2021, 1:53 a.m. OK Python 3 TESTS 8 62 307200
106638762 oorjaMe A Feb. 6, 2021, 3:42 a.m. OK Python 3 TESTS 8 62 307200
106637579 eugalt A Feb. 6, 2021, 3:15 a.m. OK Python 3 TESTS 8 62 307200
106622839 Ma_Ck A Feb. 5, 2021, 7:30 p.m. OK Python 3 TESTS 8 62 307200
106611067 nk007 A Feb. 5, 2021, 5:21 p.m. OK Python 3 TESTS 8 62 512000
106641886 srivallimadduri A Feb. 6, 2021, 4:47 a.m. OK Python 3 TESTS 8 62 512000
106644352 satylogin A Feb. 6, 2021, 5:30 a.m. OK Rust TESTS 8 30 409600
106612890 LeoRiether A Feb. 5, 2021, 5:33 p.m. OK Rust TESTS 8 31 409600

remove filters

Back to search problems