Educational Codeforces Round 132 (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
1709 Educational Codeforces Round 132 (Rated for Div. 2) FINISHED False 7200 78852263 July 21, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8602 ) D Rorororobot PROGRAMMING data structures

B"There is a grid, consisting of n rows and m columns. The rows are numbered from 1 to n from bottom to top. The columns are numbered from 1 to m from left to right. The i -th column has the bottom a_i cells blocked (the cells in rows 1, 2, ... , a_i ), the remaining n - a_i cells are unblocked. A robot is travelling across this grid. You can send it commands -- move up, right, down or left. If a robot attempts to move into a blocked cell or outside the grid, it explodes. However, the robot is broken -- it executes each received command k times. So if you tell it to move up, for example, it will move up k times ( k cells). You can't send it commands while the robot executes the current one. You are asked q queries about the robot. Each query has a start cell, a finish cell and a value k . Can you send the robot an arbitrary number of commands (possibly, zero) so that it reaches the finish cell from the start cell, given that it executes each command k times? The robot must stop in the finish cell. If it visits the finish cell while still executing commands, it doesn't count. The first line contains two integers n and m ( 1 <= n <= 10^9 ; 1 <= m <= 2 cdot 10^5 ) -- the number of rows and columns of the grid. The second line contains m integers a_1, a_2, ... , a_m ( 0 <= a_i <= n ) -- the number of blocked cells on the bottom of the i -th column. The third line contains a single integer q ( 1 <= q <= 2 cdot 10^5 ) -- the number of queries. Each of the next q lines contain five integers x_s, y_s, x_f, y_f and k ( a[y_s] < x_s <= n ; 1 <= y_s <= m ; a[y_f] < x_f <= n ; 1 <= y_f <= m ; 1 <= k <= 10^9 ) -- the row and the column of the start cell, the row and the column of the finish cell and the number of times each your command is executed. The sta"...

Tutorials

105164

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
165215648 Tdyx D July 21, 2022, 4:40 p.m. OK C# 8 TESTS 28 358 35328000
165217280 CodingJellyfish D July 21, 2022, 4:47 p.m. OK GNU C11 TESTS 28 187 44134400
165255890 HXL01 D July 22, 2022, 2:50 a.m. OK GNU C++14 TESTS 28 155 6144000
165264647 jiangbowen D July 22, 2022, 4:54 a.m. OK GNU C++14 TESTS 28 155 61337600
165216969 Ice_teapoy D July 21, 2022, 4:45 p.m. OK GNU C++14 TESTS 28 233 3993600
165244090 thunderous_reign D July 21, 2022, 10:58 p.m. OK GNU C++14 TESTS 28 249 14540800
165213930 dlalswp25 D July 21, 2022, 4:34 p.m. OK GNU C++14 TESTS 28 265 3276800
165244008 myee D July 21, 2022, 10:56 p.m. OK GNU C++14 TESTS 28 265 15872000
165247445 caijianhong D July 22, 2022, 12:32 a.m. OK GNU C++14 TESTS 28 265 18432000
165215874 Hanghang007 D July 21, 2022, 4:40 p.m. OK GNU C++14 TESTS 28 280 18432000
165217009 Hanghang007 D July 21, 2022, 4:45 p.m. OK GNU C++14 TESTS 28 280 18432000
165219123 wuhudsm D July 21, 2022, 4:56 p.m. OK GNU C++14 TESTS 28 280 54067200
165223205 Jimmy12 D July 21, 2022, 5:25 p.m. OK GNU C++17 TESTS 28 265 16076800
165254806 yayi D July 22, 2022, 2:36 a.m. OK GNU C++17 TESTS 28 265 16076800
165220009 Owaiter D July 21, 2022, 5:01 p.m. OK GNU C++17 TESTS 28 280 3993600
165218834 bear1222 D July 21, 2022, 4:54 p.m. OK GNU C++17 TESTS 28 280 21606400
165239446 IndignantHydra D July 21, 2022, 9:08 p.m. OK GNU C++17 TESTS 28 296 3993600
165259012 yangk D July 22, 2022, 3:33 a.m. OK GNU C++17 TESTS 28 296 17612800
165249426 surocsunf D July 22, 2022, 1:16 a.m. OK GNU C++17 TESTS 28 296 24064000
165218926 dnk1234567 D July 21, 2022, 4:55 p.m. OK GNU C++17 TESTS 28 311 1536000
165223222 SajibKC_19 D July 21, 2022, 5:25 p.m. OK GNU C++17 TESTS 28 311 6348800
165257565 ttkk D July 22, 2022, 3:14 a.m. OK GNU C++17 TESTS 28 311 17612800
165237796 junvalentine D July 21, 2022, 8:34 p.m. OK GNU C++17 (64) TESTS 28 218 4198400
165254961 oil20 D July 22, 2022, 2:38 a.m. OK GNU C++17 (64) TESTS 28 218 14438400
165223661 Kenshin2438 D July 21, 2022, 5:29 p.m. OK GNU C++17 (64) TESTS 28 233 14233600
165235160 aniervs D July 21, 2022, 7:49 p.m. OK GNU C++17 (64) TESTS 28 233 15462400
165217721 kal013 D July 21, 2022, 4:49 p.m. OK GNU C++17 (64) TESTS 28 233 16179200
165265483 korokseeds D July 22, 2022, 5:04 a.m. OK GNU C++17 (64) TESTS 28 234 16281600
165246704 xiaoziyao D July 22, 2022, 12:13 a.m. OK GNU C++17 (64) TESTS 28 234 18432000
165247754 linxd D July 22, 2022, 12:41 a.m. OK GNU C++17 (64) TESTS 28 234 33689600
165226420 ajxu2 D July 21, 2022, 5:55 p.m. OK GNU C++17 (64) TESTS 28 249 3174400
165250553 tomato_potato D July 22, 2022, 1:35 a.m. OK GNU C++17 (64) TESTS 28 249 3174400
165219278 kal013 D July 21, 2022, 4:57 p.m. OK GNU C++20 (64) TESTS 28 62 2150400
165266623 lndjy D July 22, 2022, 5:20 a.m. OK GNU C++20 (64) TESTS 28 155 22937600
165218001 kal013 D July 21, 2022, 4:50 p.m. OK GNU C++20 (64) TESTS 28 171 1945600
165227226 tasker342 D July 21, 2022, 6:04 p.m. OK GNU C++20 (64) TESTS 28 171 2969600
165264079 ap_2089 D July 22, 2022, 4:45 a.m. OK GNU C++20 (64) TESTS 28 171 5836800
165257581 Shiki_ D July 22, 2022, 3:14 a.m. OK GNU C++20 (64) TESTS 28 186 1638400
165212756 fredy10 D July 21, 2022, 4:33 p.m. OK GNU C++20 (64) TESTS 28 186 2457600
165233383 fuad720 D July 21, 2022, 7:20 p.m. OK GNU C++20 (64) TESTS 28 186 2457600
165220122 hghgh D July 21, 2022, 5:02 p.m. OK GNU C++20 (64) TESTS 28 186 14233600
165224932 neolith D July 21, 2022, 5:41 p.m. OK GNU C++20 (64) TESTS 28 186 14233600
165251624 dunkingdonuts D July 22, 2022, 1:50 a.m. OK Java 11 TESTS 28 389 5427200
165218513 Omar_Mohammad D July 21, 2022, 4:53 p.m. OK Java 11 TESTS 28 452 17920000
165219317 Omar_Mohammad D July 21, 2022, 4:57 p.m. OK Java 11 TESTS 28 467 17920000
165217872 gurkaran_s D July 21, 2022, 4:50 p.m. OK Java 11 TESTS 28 545 0
165214833 dzhi D July 21, 2022, 4:37 p.m. OK Java 11 TESTS 28 545 5427200
165225575 aryaman_571 D July 21, 2022, 5:47 p.m. OK Java 11 TESTS 28 561 0
165220731 x21svage D July 21, 2022, 5:06 p.m. OK Java 11 TESTS 28 561 0
165256229 Wuya D July 22, 2022, 2:55 a.m. OK Java 11 TESTS 28 608 24064000
165215755 profchi D July 21, 2022, 4:40 p.m. OK Java 11 TESTS 28 654 25292800
165215990 Nicolas125841 D July 21, 2022, 4:41 p.m. OK Java 11 TESTS 28 670 31232000
165217626 soumit915 D July 21, 2022, 4:49 p.m. OK Java 17 TESTS 28 358 3481600
165219901 for.toobye321 D July 21, 2022, 5:01 p.m. OK Java 17 TESTS 28 374 921600
165213525 for.toobye321 D July 21, 2022, 4:34 p.m. OK Java 17 TESTS 28 389 716800
165212642 pili D July 21, 2022, 4:33 p.m. OK Java 17 TESTS 28 467 307200
165254704 kkz666 D July 22, 2022, 2:34 a.m. OK Java 17 TESTS 28 514 19558400
165217592 jh316 D July 21, 2022, 4:48 p.m. OK Java 17 TESTS 28 1107 1228800
165226643 MagentaCobra D July 21, 2022, 5:57 p.m. OK Java 8 TESTS 28 218 17510400
165243800 javaisbetter D July 21, 2022, 10:50 p.m. OK Java 8 TESTS 28 374 21811200
165243293 javaisbetter D July 21, 2022, 10:37 p.m. OK Java 8 TESTS 28 374 21811200
165260773 swaggy_baba D July 22, 2022, 4 a.m. OK Java 8 TESTS 28 405 8192000
165225664 aryaman_571 D July 21, 2022, 5:47 p.m. OK Java 8 TESTS 28 467 2867200
165224594 aryamanhello D July 21, 2022, 5:38 p.m. OK Java 8 TESTS 28 482 2969600
165213736 kkkkush D July 21, 2022, 4:34 p.m. OK Java 8 TESTS 28 498 9728000
165226178 anshulchou_123 D July 21, 2022, 5:53 p.m. OK Java 8 TESTS 28 498 12185600
165226066 aryamanhello D July 21, 2022, 5:51 p.m. OK Java 8 TESTS 28 499 2867200
165217826 O_E D July 21, 2022, 4:49 p.m. OK Java 8 TESTS 28 576 26828800
165219060 LostTemple D July 21, 2022, 4:56 p.m. OK Mono C# TESTS 28 1216 32768000
165253090 Superlau D July 22, 2022, 2:12 a.m. OK MS C++ 2017 TESTS 28 405 3993600
165268352 6ziv D July 22, 2022, 5:44 a.m. OK MS C++ 2017 TESTS 28 998 16384000
165213765 ANDREYkao__ D July 21, 2022, 4:34 p.m. OK MS C++ 2017 TESTS 28 1762 5836800
165213124 vandartem D July 21, 2022, 4:33 p.m. OK MS C++ 2017 TESTS 28 1980 7270400
165227977 beckusator D July 21, 2022, 6:14 p.m. OK MS C++ 2017 TESTS 28 1981 3993600
165264863 Apoorv_Rathore D July 22, 2022, 4:56 a.m. OK PyPy 3 TESTS 28 1029 40857600
165218916 nexusmind D July 21, 2022, 4:55 p.m. OK PyPy 3 TESTS 28 1684 21401600
165227486 sushmanth.dampur8780 D July 21, 2022, 6:09 p.m. OK PyPy 3 TESTS 28 1731 17305600
165235145 SophieHatter D July 21, 2022, 7:49 p.m. OK PyPy 3-64 TESTS 28 421 85094400
165253209 biglunchdude D July 22, 2022, 2:13 a.m. OK PyPy 3-64 TESTS 28 451 57753600
165233430 The.Viking D July 21, 2022, 7:21 p.m. OK PyPy 3-64 TESTS 28 514 45056000
165232610 The.Viking D July 21, 2022, 7:09 p.m. OK PyPy 3-64 TESTS 28 514 45158400
165232452 Lanceloia D July 21, 2022, 7:06 p.m. OK PyPy 3-64 TESTS 28 546 74035200
165251021 BeBeBe66666 D July 22, 2022, 1:42 a.m. OK PyPy 3-64 TESTS 28 546 74444800
165259913 pennymagic156 D July 22, 2022, 3:47 a.m. OK PyPy 3-64 TESTS 28 561 44544000
165219494 Lanceloia D July 21, 2022, 4:58 p.m. OK PyPy 3-64 TESTS 28 608 45158400
165216948 bjy D July 21, 2022, 4:45 p.m. OK PyPy 3-64 TESTS 28 639 58777600
165227474 deepansh09 D July 21, 2022, 6:08 p.m. OK PyPy 3-64 TESTS 28 717 31641600
165224070 0npata D July 21, 2022, 5:33 p.m. OK Rust 2021 TESTS 28 155 10547200
165267280 Niklassanden D July 22, 2022, 5:29 a.m. OK Rust 2021 TESTS 28 171 12800000
165226899 bjin D July 21, 2022, 6 p.m. OK Rust 2021 TESTS 28 358 16588800
165224437 bjin D July 21, 2022, 5:36 p.m. OK Rust 2021 TESTS 28 358 16588800
165225016 bjin D July 21, 2022, 5:42 p.m. OK Rust 2021 TESTS 28 358 34816000

remove filters

Back to search problems