Codeforces Round 823 (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
1730 Codeforces Round 823 (Div. 2) FINISHED False 7200 73149863 Sept. 25, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 660 ) E Maximums and Minimums PROGRAMMING combinatorics combinatorics data structures number theory 2700

B'You are given an array a_1, a_2, ldots, a_n of positive integers. Find the number of pairs of indices (l, r) , where 1 <= l <= r <= n , that pass the check. The check is performed in the following manner: The first line contains a single integer t ( 1 <= t <= 10 ) -- the number of test cases. Then the test cases follow. Each test case consists of two lines. The first line contains a single integer n ( 1 <= n <= 5 cdot 10^5 ) -- the size of the array. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^6 ). It is guaranteed that the sum of n over all test cases does not exceed 5 cdot 10^5 . For each test case, print a single integer -- the number of pairs of indices that pass the check. Below x mid y denotes that y is divisible by x . In the first test case, there is one pair (1, 1) , the maximum for this pair is 1 , the minimum is also 1 , 1 mid 1 , so the check is passed, and the answer is 1 . In the second test case, there are 3 segments: In the third test case, there are 3 segments: '...

Tutorials

Codeforces Round #823 — editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
173542684 QQH E Sept. 26, 2022, 6 a.m. OK GNU C++14 TESTS 29 2027 139161600 2700
173531569 cun_thich_lap_trinh E Sept. 26, 2022, 2:31 a.m. OK GNU C++14 TESTS 28 2214 139571200 2700
173527777 L7-56 E Sept. 26, 2022, 1:11 a.m. OK GNU C++14 TESTS 28 2324 151142400 2700
173528436 Tyyyyyy E Sept. 26, 2022, 1:25 a.m. OK GNU C++14 TESTS 28 2418 137216000 2700
173523262 Bedo_Sayed E Sept. 25, 2022, 10:54 p.m. OK GNU C++14 TESTS 28 3322 147148800 2700
173495526 Bedo_Sayed E Sept. 25, 2022, 5:05 p.m. OK GNU C++14 TESTS 27 3416 147148800 2700
173492385 Bedo_Sayed E Sept. 25, 2022, 4:34 p.m. OK GNU C++14 TESTS 27 3619 147148800 2700
173532369 Chinese_zjc_ E Sept. 26, 2022, 2:48 a.m. OK GNU C++14 TESTS 28 4320 40243200 2700
173540602 Tobu2022 E Sept. 26, 2022, 5:24 a.m. OK GNU C++17 TESTS 29 530 29388800 2700
173503923 Bobocan E Sept. 25, 2022, 6:01 p.m. OK GNU C++17 TESTS 27 561 28569600 2700
173508326 Wailydest E Sept. 25, 2022, 6:45 p.m. OK GNU C++17 TESTS 27 1434 114688000 2700
173508116 Wailydest E Sept. 25, 2022, 6:43 p.m. OK GNU C++17 TESTS 27 1544 114688000 2700
173510404 patou E Sept. 25, 2022, 7:09 p.m. OK GNU C++17 TESTS 27 1809 126156800 2700
173484692 Um_nik E Sept. 25, 2022, 4:13 p.m. OK GNU C++17 TESTS 27 1871 141414400 2700
173542561 Doru E Sept. 26, 2022, 5:57 a.m. OK GNU C++17 TESTS 29 2136 137113600 2700
173538182 15owzLy1 E Sept. 26, 2022, 4:39 a.m. OK GNU C++17 TESTS 28 2152 137113600 2700
173497917 karemo E Sept. 25, 2022, 5:18 p.m. OK GNU C++17 TESTS 27 2184 141516800 2700
173536371 lunchbox E Sept. 26, 2022, 4:02 a.m. OK GNU C++17 TESTS 28 2495 105267200 2700
173521725 mattagar6 E Sept. 25, 2022, 10:10 p.m. OK GNU C++17 (64) TESTS 28 1777 157184000 2700
173531612 ZongDeChuangSiYiGeBa E Sept. 26, 2022, 2:32 a.m. OK GNU C++17 (64) TESTS 28 1918 134860800 2700
173512536 tatata96 E Sept. 25, 2022, 7:36 p.m. OK GNU C++17 (64) TESTS 27 2089 267980800 2700
173531632 ZongDeChuangSiYiGeBa E Sept. 26, 2022, 2:32 a.m. OK GNU C++17 (64) TESTS 28 2090 134860800 2700
173505916 lunchbox E Sept. 25, 2022, 6:20 p.m. OK GNU C++17 (64) TESTS 27 2230 116736000 2700
173502755 sandoval E Sept. 25, 2022, 5:52 p.m. OK GNU C++17 (64) TESTS 27 2246 138752000 2700
173527302 WHC-MIK-7521X E Sept. 26, 2022, 12:59 a.m. OK GNU C++17 (64) TESTS 28 2276 182681600 2700
173531455 NeuraXmy E Sept. 26, 2022, 2:29 a.m. OK GNU C++17 (64) TESTS 28 2308 195481600 2700
173484176 lunchbox E Sept. 25, 2022, 4:12 p.m. OK GNU C++17 (64) TESTS 27 2323 116736000 2700
173521866 bashkort E Sept. 25, 2022, 10:14 p.m. OK GNU C++17 (64) TESTS 28 2449 146124800 2700
173487475 jiangly E Sept. 25, 2022, 4:21 p.m. OK GNU C++20 (64) TESTS 27 483 41267200 2700
173496220 yash_daga E Sept. 25, 2022, 5:09 p.m. OK GNU C++20 (64) TESTS 27 889 42700800 2700
173504034 DanielChang E Sept. 25, 2022, 6:02 p.m. OK GNU C++20 (64) TESTS 27 1387 192716800 2700
173502925 Crying E Sept. 25, 2022, 5:54 p.m. OK GNU C++20 (64) TESTS 27 1746 144896000 2700
173518361 Brutality E Sept. 25, 2022, 9 p.m. OK GNU C++20 (64) TESTS 27 1809 124723200 2700
173518167 MathY E Sept. 25, 2022, 8:58 p.m. OK GNU C++20 (64) TESTS 27 1809 124723200 2700
173530259 He_Ren E Sept. 26, 2022, 2:04 a.m. OK GNU C++20 (64) TESTS 28 1825 142950400 2700
173523091 keta_tsimakuridze E Sept. 25, 2022, 10:48 p.m. OK GNU C++20 (64) TESTS 28 1825 178380800 2700
173511423 arbuzick E Sept. 25, 2022, 7:22 p.m. OK GNU C++20 (64) TESTS 27 1918 170803200 2700
173512250 pakhandi98 E Sept. 25, 2022, 7:33 p.m. OK GNU C++20 (64) TESTS 27 1949 268083200 2700
173507880 Dukkha E Sept. 25, 2022, 6:40 p.m. OK Java 17 TESTS 27 4773 170393600 2700

remove filters

Back to search problems