Codeforces Round 842 (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
1768 Codeforces Round 842 (Div. 2) FINISHED False 7200 58893899 Jan. 5, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 859 ) F Wonderful Jump PROGRAMMING constructive algorithms dp

B'You are given an array of positive integers a_1,a_2, ldots,a_n of length n . In one operation you can jump from index i to index j ( 1 <= i <= j <= n ) by paying min(a_i, a_{i + 1}, ldots, a_j) cdot (j - i)^2 eris. For all k from 1 to n , find the minimum number of eris needed to get from index 1 to index k . The first line contains a single integer n ( 2 <= n <= 4 cdot 10^5 ). The second line contains n integers a_1,a_2, ldots a_n ( 1 <= a_i <= n ). Output n integers -- the k -th integer is the minimum number of eris needed to reach index k if you start from index 1 . In the first example: In the fourth example from 1 to 4 : 1 rightarrow 3 rightarrow 4 -- the cost is min(1, 4, 4) cdot (3 - 1) ^ 2 + min(4, 4) cdot (4 - 3) ^ 2 = 4 + 4 = 8 . '...

Tutorials

Codeforces Round #842 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
188126802 rainboy F Jan. 5, 2023, 5:35 p.m. OK GNU C11 TESTS 139 3712 4812800
188128925 ftt2333 F Jan. 5, 2023, 5:46 p.m. OK GNU C++14 TESTS 139 1434 4812800
188169686 include_c2 F Jan. 6, 2023, 5:54 a.m. OK GNU C++14 TESTS 139 1528 4812800
188153620 ftuknights F Jan. 6, 2023, 1:20 a.m. OK GNU C++14 TESTS 139 1653 4812800
188152450 liympanda F Jan. 6, 2023, 12:43 a.m. OK GNU C++14 TESTS 139 1824 90828800
188164627 firepower F Jan. 6, 2023, 4:53 a.m. OK GNU C++14 TESTS 139 2043 6451200
188116348 drizzlo F Jan. 5, 2023, 4:23 p.m. OK GNU C++14 TESTS 139 2090 40140800
188154662 zzyorz F Jan. 6, 2023, 1:49 a.m. OK GNU C++14 TESTS 139 2526 6451200
188160336 yyyyxh F Jan. 6, 2023, 3:44 a.m. OK GNU C++14 TESTS 139 2558 7987200
188160181 yyyyxh F Jan. 6, 2023, 3:41 a.m. OK GNU C++14 TESTS 139 2604 7987200
188160977 ptraffic1919810 F Jan. 6, 2023, 3:55 a.m. OK GNU C++14 TESTS 139 3119 73728000
188144717 toooooosimple F Jan. 5, 2023, 8:45 p.m. OK GNU C++17 TESTS 139 1544 4812800
188116802 jack112739 F Jan. 5, 2023, 4:24 p.m. OK GNU C++17 TESTS 139 1575 6348800
188144457 toooooosimple F Jan. 5, 2023, 8:40 p.m. OK GNU C++17 TESTS 139 1622 4812800
188170235 huyaowen F Jan. 6, 2023, 6 a.m. OK GNU C++17 TESTS 139 1699 6451200
188136087 1459007298 F Jan. 5, 2023, 6:40 p.m. OK GNU C++17 TESTS 139 1965 6451200
188166165 paopaooux F Jan. 6, 2023, 5:13 a.m. OK GNU C++17 TESTS 139 2059 6451200
188154131 KaJo F Jan. 6, 2023, 1:34 a.m. OK GNU C++17 TESTS 139 2152 4812800
188143071 toooooosimple F Jan. 5, 2023, 8:16 p.m. OK GNU C++17 TESTS 139 2230 4812800
188134004 zlc1114 F Jan. 5, 2023, 6:22 p.m. OK GNU C++17 TESTS 139 2823 7987200
188134227 zlc1114 F Jan. 5, 2023, 6:24 p.m. OK GNU C++17 TESTS 139 3010 7987200
188159903 LXH-cat F Jan. 6, 2023, 3:36 a.m. OK GNU C++17 (64) TESTS 139 467 6451200
188144880 toooooosimple F Jan. 5, 2023, 8:48 p.m. OK GNU C++17 (64) TESTS 139 483 4812800
188139713 stan23456 F Jan. 5, 2023, 7:25 p.m. OK GNU C++17 (64) TESTS 139 545 6451200
188163650 oceeff F Jan. 6, 2023, 4:39 a.m. OK GNU C++17 (64) TESTS 139 764 6451200
188159599 Cxny F Jan. 6, 2023, 3:31 a.m. OK GNU C++17 (64) TESTS 139 779 4812800
188160328 Cxny F Jan. 6, 2023, 3:43 a.m. OK GNU C++17 (64) TESTS 139 779 4812800
188127009 rainboy F Jan. 5, 2023, 5:36 p.m. OK GNU C++17 (64) TESTS 139 810 4710400
188153209 _TOBapNw_ F Jan. 6, 2023, 1:08 a.m. OK GNU C++17 (64) TESTS 139 920 8601600
188145792 camc F Jan. 5, 2023, 9:07 p.m. OK GNU C++17 (64) TESTS 139 1060 6451200
188145856 camc F Jan. 5, 2023, 9:08 p.m. OK GNU C++17 (64) TESTS 139 1263 6451200
188148916 AnasMaged F Jan. 5, 2023, 10:34 p.m. OK GNU C++20 (64) TESTS 139 468 6451200
188134389 hedgeh0g F Jan. 5, 2023, 6:25 p.m. OK GNU C++20 (64) TESTS 139 468 6451200
188129187 A_G F Jan. 5, 2023, 5:48 p.m. OK GNU C++20 (64) TESTS 139 483 4812800
188137289 fuad720 F Jan. 5, 2023, 6:54 p.m. OK GNU C++20 (64) TESTS 139 514 4812800
188134892 tfg F Jan. 5, 2023, 6:29 p.m. OK GNU C++20 (64) TESTS 139 514 4812800
188150726 njwrz F Jan. 5, 2023, 11:40 p.m. OK GNU C++20 (64) TESTS 139 529 4812800
188126026 jeroenodb F Jan. 5, 2023, 5:32 p.m. OK GNU C++20 (64) TESTS 139 546 100864000
188134623 tfg F Jan. 5, 2023, 6:27 p.m. OK GNU C++20 (64) TESTS 139 561 19865600
188126713 jeroenodb F Jan. 5, 2023, 5:35 p.m. OK GNU C++20 (64) TESTS 139 561 100864000
188149355 czhang2718 F Jan. 5, 2023, 10:49 p.m. OK GNU C++20 (64) TESTS 139 577 4812800
188156583 Little_Sheep_Yawn F Jan. 6, 2023, 2:34 a.m. OK PyPy 3-64 TESTS 139 2215 66764800

remove filters

Back to search problems