Codeforces Round 742 (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
1567 Codeforces Round 742 (Div. 2) FINISHED False 7200 106327463 Sept. 5, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3766 ) E Non-Decreasing Dilemma PROGRAMMING data structures implementation

B"Alice has recently received an array a_1, a_2, ... , a_n for her birthday! She is very proud of her array, and when she showed her friend Bob the array, he was very happy with her present too! However, soon Bob became curious, and as any sane friend would do, asked Alice to perform q operations of two types on her array: Help Alice answer Bob's queries! The first line contains two integers n and q ( 1 <= n, q <= 2 cdot 10^5 ) -- the size of the array, and the number of queries, respectively. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ) -- the elements of Alice's array. The next q lines consist of three integers each. The first integer of the i -th line is t_i , the operation being performed on the i -th step ( t_i = 1 or t_i = 2 ). If t_i = 1 , the next two integers are x_i and y_i ( 1 <= x_i <= n ; 1 <= y_i <= 10^9 ), updating the element at position x_i to y_i (setting a_{x_i} = y_i ). If t_i = 2 , the next two integers are l_i and r_i ( 1 <= l_i <= r_i <= n ), the two indices Bob asks Alice about for the i -th query. It's guaranteed that there is at least one operation of the second type. For each query of type 2 , print a single integer, the answer to the query. For the first query, l = 2 and r = 5 , and the non-decreasing subarrays [p,q] are [2,2] , [3,3] , [4,4] , [5,5] , [2,3] and [4,5] . "...

Tutorials

Codeforces Round #742 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
128000494 ssvb E Sept. 5, 2021, 11:33 p.m. OK D TESTS 104 561 67072000
127985171 Cgfyufsygsm E Sept. 5, 2021, 5:30 p.m. OK GNU C++14 TESTS 104 233 53350400
128006116 YangTY E Sept. 6, 2021, 2:31 a.m. OK GNU C++14 TESTS 104 249 53350400
128003991 xiaoziyao E Sept. 6, 2021, 1:36 a.m. OK GNU C++14 TESTS 104 296 30208000
128004033 xiaoziyao E Sept. 6, 2021, 1:37 a.m. OK GNU C++14 TESTS 104 311 24576000
128003999 xiaoziyao E Sept. 6, 2021, 1:36 a.m. OK GNU C++14 TESTS 104 311 24576000
128009328 syf1201 E Sept. 6, 2021, 3:50 a.m. OK GNU C++14 TESTS 104 311 31744000
128007312 langminjie E Sept. 6, 2021, 3:03 a.m. OK GNU C++14 TESTS 104 312 18944000
128003005 iterater E Sept. 6, 2021, 1:06 a.m. OK GNU C++14 TESTS 104 312 30208000
128007385 et3_tsy3.0 E Sept. 6, 2021, 3:05 a.m. OK GNU C++14 TESTS 104 327 13619200
128006759 liang_cheng E Sept. 6, 2021, 2:49 a.m. OK GNU C++14 TESTS 104 327 19148800
128000159 niyuzheNO1 E Sept. 5, 2021, 11:18 p.m. OK GNU C++17 TESTS 104 140 101990400
128009268 Pedestrian1 E Sept. 6, 2021, 3:48 a.m. OK GNU C++17 TESTS 104 311 25395200
128013877 iyua E Sept. 6, 2021, 5:22 a.m. OK GNU C++17 TESTS 104 311 30208000
128005752 _horizon_ E Sept. 6, 2021, 2:22 a.m. OK GNU C++17 TESTS 104 327 11776000
127989922 Monarchuwu E Sept. 5, 2021, 6:32 p.m. OK GNU C++17 TESTS 104 327 14950400
128011643 UD_xlinsist E Sept. 6, 2021, 4:39 a.m. OK GNU C++17 TESTS 104 327 30208000
127975345 spy20051623 E Sept. 5, 2021, 4:14 p.m. OK GNU C++17 TESTS 104 342 23756800
127986553 suimu E Sept. 5, 2021, 5:44 p.m. OK GNU C++17 TESTS 104 343 23756800
128008091 goldenskygiang E Sept. 6, 2021, 3:23 a.m. OK GNU C++17 TESTS 104 358 17408000
127994765 darkkcyan E Sept. 5, 2021, 8:09 p.m. OK GNU C++17 TESTS 104 358 17408000
127991191 nor E Sept. 5, 2021, 6:53 p.m. OK GNU C++17 (64) TESTS 104 108 30924800
127984287 nor E Sept. 5, 2021, 5:26 p.m. OK GNU C++17 (64) TESTS 104 109 22016000
127991276 nor E Sept. 5, 2021, 6:54 p.m. OK GNU C++17 (64) TESTS 104 109 24473600
127991376 nor E Sept. 5, 2021, 6:56 p.m. OK GNU C++17 (64) TESTS 104 124 24473600
127991249 nor E Sept. 5, 2021, 6:54 p.m. OK GNU C++17 (64) TESTS 104 124 24473600
127991591 nor E Sept. 5, 2021, 6:59 p.m. OK GNU C++17 (64) TESTS 104 124 30822400
127985390 uuku E Sept. 5, 2021, 5:32 p.m. OK GNU C++17 (64) TESTS 104 155 35020800
127973258 orz_dengyaotriangle E Sept. 5, 2021, 4:07 p.m. OK GNU C++17 (64) TESTS 104 202 32870400
127985508 uuku E Sept. 5, 2021, 5:33 p.m. OK GNU C++17 (64) TESTS 104 202 35020800
128014277 Sooh31 E Sept. 6, 2021, 5:29 a.m. OK GNU C++17 (64) TESTS 104 218 27545600
127978166 G.A.T.C E Sept. 5, 2021, 4:23 p.m. OK Java 11 TESTS 104 701 37683200
127991314 dusty.and.rusty E Sept. 5, 2021, 6:55 p.m. OK Java 11 TESTS 104 1044 45772800
127984410 Dukkha E Sept. 5, 2021, 5:26 p.m. OK Java 11 TESTS 104 1294 39116800
128005023 henrychenOutlook E Sept. 6, 2021, 2:02 a.m. OK Java 11 TESTS 104 1513 86118400
128005528 henrychenOutlook E Sept. 6, 2021, 2:16 a.m. OK Java 11 TESTS 104 1544 75059200
127988865 naitikvarshney E Sept. 5, 2021, 6:16 p.m. OK Java 8 TESTS 104 733 102604800
127976963 TCL E Sept. 5, 2021, 4:19 p.m. OK MS C++ 2017 TESTS 104 1107 20172800
127973253 Yupiteru E Sept. 5, 2021, 4:07 p.m. OK .NET Core C# TESTS 104 342 40755200
127989410 nor E Sept. 5, 2021, 6:24 p.m. OK PyPy 3 TESTS 104 1996 129536000
127988447 nor E Sept. 5, 2021, 6:10 p.m. OK PyPy 3 TESTS 104 1996 130764800
127988918 nor E Sept. 5, 2021, 6:17 p.m. OK PyPy 3 TESTS 104 1996 139878400
127996548 apilat E Sept. 5, 2021, 8:56 p.m. OK Rust TESTS 104 389 32665600
127989323 manfp E Sept. 5, 2021, 6:22 p.m. OK Rust TESTS 104 1902 27340800

remove filters

Back to search problems