Educational Codeforces Round 159 (Rated for 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
1902 Educational Codeforces Round 159 (Rated for Div. 2) FINISHED False 7200 35565863 Dec. 3, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4308 ) D Robot Queries PROGRAMMING binary search data structures geometry sortings

B'There is an infinite 2 -dimensional grid. Initially, a robot stands in the point (0, 0) . The robot can execute four commands: You are given a sequence of commands s of length n . Your task is to answer q independent queries: given four integers x , y , l and r ; determine whether the robot visits the point (x, y) , while executing a sequence s , but the substring from l to r is reversed (i. xe2 x80 x89e. the robot performs commands in order s_1 s_2 s_3 ... s_{l-1} s_r s_{r-1} s_{r-2} ... s_l s_{r+1} s_{r+2} ... s_n ). The first line contains two integers n and q ( 1 <= n, q <= 2 cdot 10^5 ) -- the length of the command sequence and the number of queries, respectively. The second line contains a string s of length n , consisting of characters U, D, L and/or R. Then q lines follow, the i -th of them contains four integers x_i , y_i , l_i and r_i ( -n <= x_i, y_i <= n ; 1 <= l <= r <= n ) describing the i -th query. For each query, print YES if the robot visits the point (x, y) , while executing a sequence s , but the substring from l to r is reversed; otherwise print NO. In the first query of the first sample, the path of the robot looks as follows: In the second query of the first sample, the path of the robot looks as follows: In the third query of the first sample, the path of the robot looks as follows: '...

Tutorials

Educational Codeforces Round 159 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
235630668 mmfn1996 D Dec. 3, 2023, 8:02 p.m. OK C# 8 TESTS 40 873 22016000
235630283 eastnman D Dec. 3, 2023, 7:58 p.m. OK FPC TESTS 40 1045 21299200
235610175 shouxhy D Dec. 3, 2023, 5:08 p.m. OK GNU C++14 TESTS 40 342 38092800
235651328 RernaG D Dec. 4, 2023, 3:23 a.m. OK GNU C++14 TESTS 40 343 6041600
235617904 honey D Dec. 3, 2023, 6:04 p.m. OK GNU C++14 TESTS 40 358 5017600
235658038 budadiv3 D Dec. 4, 2023, 5:14 a.m. OK GNU C++14 TESTS 40 358 7987200
235640917 songke123 D Dec. 3, 2023, 11:41 p.m. OK GNU C++14 TESTS 40 358 11673600
235640349 EvenToWorldFinal D Dec. 3, 2023, 11:27 p.m. OK GNU C++14 TESTS 40 390 6041600
235644651 FLAME. D Dec. 4, 2023, 1:15 a.m. OK GNU C++14 TESTS 40 390 13312000
235624066 osvarp D Dec. 3, 2023, 6:59 p.m. OK GNU C++14 TESTS 40 390 14950400
235641535 bdfs_then_CSDN D Dec. 3, 2023, 11:58 p.m. OK GNU C++14 TESTS 40 405 13414400
235653128 MasterCactus D Dec. 4, 2023, 3:57 a.m. OK GNU C++14 TESTS 40 420 23142400
235601847 sjoonmin07 D Dec. 3, 2023, 4:31 p.m. OK GNU C++17 TESTS 40 264 19865600
235600700 kimnattanan D Dec. 3, 2023, 4:29 p.m. OK GNU C++17 TESTS 40 295 6758400
235606932 ranxi D Dec. 3, 2023, 4:50 p.m. OK GNU C++17 TESTS 40 295 35123200
235607056 HaoxuanXIE D Dec. 3, 2023, 4:50 p.m. OK GNU C++17 TESTS 40 311 11264000
235613350 ranxi D Dec. 3, 2023, 5:28 p.m. OK GNU C++17 TESTS 40 327 6041600
235603999 GadgedGuy D Dec. 3, 2023, 4:34 p.m. OK GNU C++17 TESTS 40 327 7475200
235648421 theNewSon D Dec. 4, 2023, 2:27 a.m. OK GNU C++17 TESTS 40 327 11673600
235649254 lukatiger D Dec. 4, 2023, 2:43 a.m. OK GNU C++17 TESTS 40 327 94924800
235648293 theNewSon D Dec. 4, 2023, 2:25 a.m. OK GNU C++17 TESTS 40 342 11673600
235646067 Fufu_ D Dec. 4, 2023, 1:43 a.m. OK GNU C++17 TESTS 40 343 6041600
235605216 xueshen666 D Dec. 3, 2023, 4:43 p.m. OK GNU C++17 (64) TESTS 40 233 46694400
235652671 t98slider D Dec. 4, 2023, 3:49 a.m. OK GNU C++17 (64) TESTS 40 264 10137600
235652664 mingzuzhang D Dec. 4, 2023, 3:48 a.m. OK GNU C++17 (64) TESTS 40 296 7782400
235598964 tnaito D Dec. 3, 2023, 4:25 p.m. OK GNU C++17 (64) TESTS 40 312 11571200
235648368 _2__0 D Dec. 4, 2023, 2:26 a.m. OK GNU C++17 (64) TESTS 40 327 16588800
235607979 bozoslav D Dec. 3, 2023, 4:55 p.m. OK GNU C++17 (64) TESTS 40 343 7782400
235656618 lococ D Dec. 4, 2023, 4:54 a.m. OK GNU C++17 (64) TESTS 40 343 11571200
235656259 alif_cse_ju D Dec. 4, 2023, 4:48 a.m. OK GNU C++17 (64) TESTS 40 343 16384000
235613065 JML D Dec. 3, 2023, 5:26 p.m. OK GNU C++17 (64) TESTS 40 343 18534400
235598799 secret-550504 D Dec. 3, 2023, 4:25 p.m. OK GNU C++17 (64) TESTS 40 374 16486400
235614052 -ilya- D Dec. 3, 2023, 5:33 p.m. OK GNU C++20 (64) TESTS 40 202 7372800
235613314 -ilya- D Dec. 3, 2023, 5:28 p.m. OK GNU C++20 (64) TESTS 40 218 7372800
235612437 PROELECTRO444 D Dec. 3, 2023, 5:22 p.m. OK GNU C++20 (64) TESTS 40 218 7372800
235614073 Dolfun D Dec. 3, 2023, 5:34 p.m. OK GNU C++20 (64) TESTS 40 233 7680000
235643396 MCdyc D Dec. 4, 2023, 12:46 a.m. OK GNU C++20 (64) TESTS 40 249 7782400
235613019 FLYDEB D Dec. 3, 2023, 5:26 p.m. OK GNU C++20 (64) TESTS 40 249 21504000
235643459 MCdyc D Dec. 4, 2023, 12:47 a.m. OK GNU C++20 (64) TESTS 40 265 7782400
235623316 AlMuhitMuhtadi D Dec. 3, 2023, 6:52 p.m. OK GNU C++20 (64) TESTS 40 265 16691200
235641738 tdsb D Dec. 4, 2023, 12:03 a.m. OK GNU C++20 (64) TESTS 40 265 32051200
235609871 ManInM00N D Dec. 3, 2023, 5:06 p.m. OK GNU C++20 (64) TESTS 40 265 41881600
235611983 juanmn D Dec. 3, 2023, 5:19 p.m. OK Go TESTS 40 1138 15872000
235605313 WORTH D Dec. 3, 2023, 4:43 p.m. OK Java 11 TESTS 40 748 18841600
235619658 soumit915 D Dec. 3, 2023, 6:19 p.m. OK Java 11 TESTS 40 1606 54886400
235659980 Liiii D Dec. 4, 2023, 5:40 a.m. OK Java 17 TESTS 40 795 42700800
235626103 TCchen D Dec. 3, 2023, 7:17 p.m. OK Java 17 TESTS 40 888 71065600
235610227 mapleKing D Dec. 3, 2023, 5:08 p.m. OK Java 17 TESTS 40 1045 40243200
235607705 Mamimi D Dec. 3, 2023, 4:54 p.m. OK Java 17 TESTS 40 1855 71065600
235619583 soumit915 D Dec. 3, 2023, 6:18 p.m. OK Java 21 TESTS 40 1840 59801600
235600009 Java_Programmer D Dec. 3, 2023, 4:27 p.m. OK Java 8 TESTS 40 608 29798400
235612923 vatsal_04 D Dec. 3, 2023, 5:25 p.m. OK Java 8 TESTS 40 1153 14848000
235603758 tabr D Dec. 3, 2023, 4:34 p.m. OK Kotlin 1.7 TESTS 40 1778 136908800
235601797 tabr D Dec. 3, 2023, 4:31 p.m. OK Kotlin 1.7 TESTS 40 1778 144998400
235599751 DeadlyPillow D Dec. 3, 2023, 4:27 p.m. OK Kotlin 1.7 TESTS 40 1824 207257600
235640204 jackcaptain D Dec. 3, 2023, 11:22 p.m. OK MS C++ 2017 TESTS 40 826 27852800
235637422 iuxan D Dec. 3, 2023, 10:09 p.m. OK MS C++ 2017 TESTS 40 842 12185600
235602222 dmitriy48 D Dec. 3, 2023, 4:32 p.m. OK MS C++ 2017 TESTS 40 1528 5836800
235659136 hxu10 D Dec. 4, 2023, 5:29 a.m. OK PyPy 3 TESTS 40 1700 52121600
235653843 Quick-One D Dec. 4, 2023, 4:08 a.m. OK PyPy 3 TESTS 40 1777 25907200
235622042 misorin D Dec. 3, 2023, 6:40 p.m. OK PyPy 3-64 TESTS 40 452 50073600
235606957 athvasingh34568 D Dec. 3, 2023, 4:50 p.m. OK PyPy 3-64 TESTS 40 920 40652800
235605512 SoleProprietor D Dec. 3, 2023, 4:44 p.m. OK PyPy 3-64 TESTS 40 950 38604800
235641474 RobinFromTheHood D Dec. 3, 2023, 11:56 p.m. OK PyPy 3-64 TESTS 40 1044 39731200
235655414 booskako D Dec. 4, 2023, 4:35 a.m. OK PyPy 3-64 TESTS 40 1045 42496000
235620698 sushmanth.dampur8780 D Dec. 3, 2023, 6:28 p.m. OK PyPy 3-64 TESTS 40 1091 35532800
235609286 shubhargava D Dec. 3, 2023, 5:03 p.m. OK PyPy 3-64 TESTS 40 1154 73728000
235655299 booskako D Dec. 4, 2023, 4:33 a.m. OK PyPy 3-64 TESTS 40 1201 42496000
235654211 Quick-One D Dec. 4, 2023, 4:15 a.m. OK PyPy 3-64 TESTS 40 1216 43008000
235653811 Quick-One D Dec. 4, 2023, 4:07 a.m. OK PyPy 3-64 TESTS 40 1231 39936000
235610655 PugachAG D Dec. 3, 2023, 5:10 p.m. OK Rust 2021 TESTS 40 234 38604800
235608461 kost D Dec. 3, 2023, 4:58 p.m. OK Rust 2021 TESTS 40 1216 74956800

remove filters

Back to search problems