Codeforces Round 833 (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
1748 Codeforces Round 833 (Div. 2) FINISHED False 7200 68916263 Nov. 12, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2058 ) E Yet Another Array Counting Problem PROGRAMMING data structures divide and conquer dp trees 2300

B"The position of the leftmost maximum on the segment [l; r] of array x = [x_1, x_2, ldots, x_n] is the smallest integer i such that l <= i <= r and x_i = max(x_l, x_{l+1}, ldots, x_r) . You are given an array a = [a_1, a_2, ldots, a_n] of length n . Find the number of integer arrays b = [b_1, b_2, ldots, b_n] of length n that satisfy the following conditions: Since the answer might be very large, print its remainder modulo 10^9+7 . Each test contains multiple test cases. The first line contains a single integer t ( 1 <= t <= 10^3 ) -- the number of test cases. The first line of each test case contains two integers n and m ( 2 <= n,m <= 2 cdot 10^5 , n cdot m <= 10^6 ). The second line of each test case contains n integers a_1,a_2, ldots,a_n ( 1 <= a_i <= m ) -- the array a . It is guaranteed that the sum of n cdot m over all test cases doesn't exceed 10^6 . For each test case print one integer -- the number of arrays b that satisfy the conditions from the statement, modulo 10^9+7 . In the first test case, the following 8 arrays satisfy the conditions from the statement: In the second test case, the following 5 arrays satisfy the conditions from the statement: "...

Tutorials

Codeforces Round #833 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
180658945 Tdyx E Nov. 12, 2022, 4:56 p.m. OK C# 10 TESTS 24 124 62054400 2300
180682226 chro4896 E Nov. 12, 2022, 8:08 p.m. OK GNU C11 TESTS 24 343 36761600 2300
180652496 Icedpiggy E Nov. 12, 2022, 4:22 p.m. OK GNU C++14 TESTS 24 93 15360000 2300
180700730 cryozwq E Nov. 13, 2022, 2:47 a.m. OK GNU C++14 TESTS 24 108 23449600 2300
180658938 LinkZelda E Nov. 12, 2022, 4:56 p.m. OK GNU C++14 TESTS 24 109 144281600 2300
180646469 Min_25 E Nov. 12, 2022, 3:59 p.m. OK GNU C++14 TESTS 24 124 21811200 2300
180682249 antguz E Nov. 12, 2022, 8:09 p.m. OK GNU C++14 TESTS 24 124 23449600 2300
180702447 uhspn E Nov. 13, 2022, 3:29 a.m. OK GNU C++14 TESTS 24 124 23961600 2300
180702082 sunchaoyi E Nov. 13, 2022, 3:19 a.m. OK GNU C++14 TESTS 24 124 44646400 2300
180659443 SpringWait E Nov. 12, 2022, 4:59 p.m. OK GNU C++14 TESTS 24 140 18636800 2300
180703989 pengyule E Nov. 13, 2022, 4:08 a.m. OK GNU C++14 TESTS 24 140 23449600 2300
180655619 321625uzki E Nov. 12, 2022, 4:32 p.m. OK GNU C++14 TESTS 24 140 25804800 2300
180653564 Marsrayd E Nov. 12, 2022, 4:25 p.m. OK GNU C++17 TESTS 24 62 86118400 2300
180700907 VinstaG173 E Nov. 13, 2022, 2:52 a.m. OK GNU C++17 TESTS 24 78 14848000 2300
180652577 LinkZelda1225 E Nov. 12, 2022, 4:22 p.m. OK GNU C++17 TESTS 24 124 147456000 2300
180664080 baLoon8128 E Nov. 12, 2022, 5:38 p.m. OK GNU C++17 TESTS 24 139 13619200 2300
180665408 propane E Nov. 12, 2022, 5:52 p.m. OK GNU C++17 TESTS 24 155 26624000 2300
180703048 runde E Nov. 13, 2022, 3:43 a.m. OK GNU C++17 TESTS 24 155 27648000 2300
180655557 lyc2333 E Nov. 12, 2022, 4:32 p.m. OK GNU C++17 TESTS 24 155 125952000 2300
180646051 wa_233 E Nov. 12, 2022, 3:58 p.m. OK GNU C++17 TESTS 24 171 16896000 2300
180689040 yan.silva E Nov. 12, 2022, 9:06 p.m. OK GNU C++17 TESTS 24 171 38502400 2300
180668321 elazarkoren E Nov. 12, 2022, 6:22 p.m. OK GNU C++17 TESTS 24 171 146944000 2300
180658291 Freedom__King E Nov. 12, 2022, 4:52 p.m. OK GNU C++17 (64) TESTS 24 61 59904000 2300
180652911 mircea_007 E Nov. 12, 2022, 4:23 p.m. OK GNU C++17 (64) TESTS 24 109 27238400 2300
180648271 clear_wind E Nov. 12, 2022, 4:05 p.m. OK GNU C++17 (64) TESTS 24 109 30515200 2300
180700503 wqy2022 E Nov. 13, 2022, 2:41 a.m. OK GNU C++17 (64) TESTS 24 109 33689600 2300
180705424 Shukuang E Nov. 13, 2022, 4:39 a.m. OK GNU C++17 (64) TESTS 24 124 42496000 2300
180669148 emthrm E Nov. 12, 2022, 6:32 p.m. OK GNU C++17 (64) TESTS 24 140 19353600 2300
180652451 HpSuda E Nov. 12, 2022, 4:21 p.m. OK GNU C++17 (64) TESTS 24 140 39321600 2300
180649575 shuashuawan E Nov. 12, 2022, 4:10 p.m. OK GNU C++17 (64) TESTS 24 155 60928000 2300
180700667 enslaved E Nov. 13, 2022, 2:46 a.m. OK GNU C++17 (64) TESTS 24 171 46489600 2300
180647581 for_fun0 E Nov. 12, 2022, 4:03 p.m. OK GNU C++17 (64) TESTS 24 171 80179200 2300
180645282 _Tish_system E Nov. 12, 2022, 3:55 p.m. OK GNU C++20 (64) TESTS 24 78 20889600 2300
180694816 maxplus E Nov. 12, 2022, 11:44 p.m. OK GNU C++20 (64) TESTS 24 78 32051200 2300
180694715 maxplus E Nov. 12, 2022, 11:41 p.m. OK GNU C++20 (64) TESTS 24 93 32051200 2300
180700542 MicroMaker E Nov. 13, 2022, 2:42 a.m. OK GNU C++20 (64) TESTS 24 93 32870400 2300
180660505 MvKaio E Nov. 12, 2022, 5:07 p.m. OK GNU C++20 (64) TESTS 24 93 39219200 2300
180697568 Nea1 E Nov. 13, 2022, 1:23 a.m. OK GNU C++20 (64) TESTS 24 108 33689600 2300
180700886 komeiji_koishi514 E Nov. 13, 2022, 2:51 a.m. OK GNU C++20 (64) TESTS 24 109 30720000 2300
180662696 qqqqc E Nov. 12, 2022, 5:26 p.m. OK GNU C++20 (64) TESTS 24 109 36864000 2300
180653027 A_G E Nov. 12, 2022, 4:23 p.m. OK GNU C++20 (64) TESTS 24 124 30310400 2300
180710923 OvOrz E Nov. 13, 2022, 6:02 a.m. OK GNU C++20 (64) TESTS 24 124 35328000 2300
180702080 profchi E Nov. 13, 2022, 3:19 a.m. OK Java 11 TESTS 24 1122 95539200 2300
180663183 Dukkha E Nov. 12, 2022, 5:30 p.m. OK Java 17 TESTS 24 811 11673600 2300
180664178 AndreySiunov E Nov. 12, 2022, 5:39 p.m. OK Java 8 TESTS 24 421 45670400 2300
180663723 golions E Nov. 12, 2022, 5:35 p.m. OK Java 8 TESTS 24 530 48640000 2300
180654669 AndreySiunov E Nov. 12, 2022, 4:29 p.m. OK Java 8 TESTS 24 1934 224153600 2300
180682550 arvindf232 E Nov. 12, 2022, 8:13 p.m. OK Kotlin 1.7 TESTS 24 1310 239616000 2300
180682634 arvindf232 E Nov. 12, 2022, 8:14 p.m. OK Kotlin 1.7 TESTS 24 1465 169574400 2300
180682742 arvindf232 E Nov. 12, 2022, 8:16 p.m. OK Kotlin 1.7 TESTS 24 1762 260505600 2300
180660278 r57shell E Nov. 12, 2022, 5:05 p.m. OK PyPy 3-64 TESTS 24 717 102092800 2300
180696659 sansen E Nov. 13, 2022, 12:56 a.m. OK Rust 2021 TESTS 24 108 28876800 2300
180701256 cottoncotton E Nov. 13, 2022, 2:59 a.m. OK Rust 2021 TESTS 24 170 129024000 2300

remove filters

Back to search problems