Educational Codeforces Round 146 (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
1814 Educational Codeforces Round 146 (Rated for Div. 2) FINISHED False 8100 56388263 April 6, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1412 ) E Chain Chips PROGRAMMING data structures dp

B"You are given an undirected graph consisting of n vertices and n-1 edges. The i -th edge has weight a_i ; it connects the vertices i and i+1 . Initially, each vertex contains a chip. Each chip has an integer written on it; the integer written on the chip in the i -th vertex is i . In one operation, you can choose a chip (if there are multiple chips in a single vertex, you may choose any one of them) and move it along one of the edges of the graph. The cost of this operation is equal to the weight of the edge. The cost of the graph is the minimum cost of a sequence of such operations that meets the following condition: You are given q queries of the form: After each query, print the cost of the graph. Note that you don't actually move any chips; when you compute the cost, the chips are on their initial positions. The first line contains one integer n ( 2 <= n <= 2 cdot 10^5 ). The second line contains n-1 integers a_1, a_2, ... , a_{n-1} ( 1 <= a_i <= 10^9 ). The third line contains one integer q ( 1 <= q <= 2 cdot 10^5 ). Then q lines follow. The i -th of them contains two integers k and x ( 1 <= k <= n-1 ; 1 <= x <= 10^9 ) for the i -th query. For each query, print one integer -- the cost of the graph after the query is performed. "...

Tutorials

Educational Codeforces Round 146 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
201093325 High_Score E April 7, 2023, 3:43 a.m. OK GNU C++14 TESTS 61 265 17817600
201047981 Splashing E April 6, 2023, 4:29 p.m. OK GNU C++14 TESTS 61 389 39321600
201058061 DLUT_Zeratul E April 6, 2023, 5:27 p.m. OK GNU C++14 TESTS 61 420 32870400
201072856 CReaper1116 E April 6, 2023, 8:13 p.m. OK GNU C++14 TESTS 61 452 26419200
201097128 tuxuanming2027 E April 7, 2023, 4:55 a.m. OK GNU C++14 TESTS 61 467 43315200
201091586 include_BM E April 7, 2023, 3:06 a.m. OK GNU C++14 TESTS 61 546 54476800
201062201 Tikhon-Korneenko E April 6, 2023, 6:08 p.m. OK GNU C++14 TESTS 61 561 26419200
201097259 zhensuan E April 7, 2023, 4:57 a.m. OK GNU C++14 TESTS 63 639 27238400
201062554 lamduybao03 E April 6, 2023, 6:11 p.m. OK GNU C++14 TESTS 61 686 27238400
201056499 lh3k E April 6, 2023, 5:13 p.m. OK GNU C++14 TESTS 61 826 64921600
201048222 mc020207 E April 6, 2023, 4:30 p.m. OK GNU C++17 TESTS 61 374 20070400
201083744 OMG_wc E April 6, 2023, 11:51 p.m. OK GNU C++17 TESTS 61 374 32051200
201051321 zas111lll E April 6, 2023, 4:43 p.m. OK GNU C++17 TESTS 61 390 26419200
201052528 KassiJulgus E April 6, 2023, 4:48 p.m. OK GNU C++17 TESTS 61 404 18432000
201052139 Chrisedyong E April 6, 2023, 4:46 p.m. OK GNU C++17 TESTS 61 436 26419200
201045481 Shuishui_0921 E April 6, 2023, 4:20 p.m. OK GNU C++17 TESTS 61 436 26419200
201081887 idLe. E April 6, 2023, 11:06 p.m. OK GNU C++17 TESTS 61 436 27238400
201084761 bigbrain E April 7, 2023, 12:12 a.m. OK GNU C++17 TESTS 61 451 26419200
201052063 Graphter E April 6, 2023, 4:46 p.m. OK GNU C++17 TESTS 61 452 14745600
201070276 gustavoleal E April 6, 2023, 7:42 p.m. OK GNU C++17 TESTS 61 467 27238400
201048314 rtckyw_ E April 6, 2023, 4:31 p.m. OK GNU C++17 (64) TESTS 61 233 18432000
201101421 enslaved E April 7, 2023, 5:55 a.m. OK GNU C++17 (64) TESTS 63 248 28057600
201093688 kdlive E April 7, 2023, 3:51 a.m. OK GNU C++17 (64) TESTS 61 249 27545600
201056952 UltramanDecker E April 6, 2023, 5:17 p.m. OK GNU C++17 (64) TESTS 61 249 33177600
201081204 ahshafi E April 6, 2023, 10:51 p.m. OK GNU C++17 (64) TESTS 61 249 33689600
201063444 aplysia56108 E April 6, 2023, 6:20 p.m. OK GNU C++17 (64) TESTS 61 265 23244800
201101848 gqf123 E April 7, 2023, 6:01 a.m. OK GNU C++17 (64) TESTS 63 265 41676800
201094260 deepak_sriram E April 7, 2023, 4:04 a.m. OK GNU C++17 (64) TESTS 61 265 57753600
201097472 aibark E April 7, 2023, 5 a.m. OK GNU C++17 (64) TESTS 63 280 27238400
201063129 illume2021 E April 6, 2023, 6:17 p.m. OK GNU C++17 (64) TESTS 61 280 32870400
201089126 F_8 E April 7, 2023, 2:07 a.m. OK GNU C++20 (64) TESTS 61 171 4812800
201095457 Randias E April 7, 2023, 4:28 a.m. OK GNU C++20 (64) TESTS 61 187 26521600
201061253 TimDee E April 6, 2023, 5:58 p.m. OK GNU C++20 (64) TESTS 61 202 20070400
201061174 TimDee E April 6, 2023, 5:57 p.m. OK GNU C++20 (64) TESTS 61 202 20070400
201048755 siganai E April 6, 2023, 4:32 p.m. OK GNU C++20 (64) TESTS 61 202 24064000
201079901 enzopsm E April 6, 2023, 10:22 p.m. OK GNU C++20 (64) TESTS 61 202 27238400
201061212 vgtcross E April 6, 2023, 5:57 p.m. OK GNU C++20 (64) TESTS 61 217 7987200
201068293 GALA E April 6, 2023, 7:16 p.m. OK GNU C++20 (64) TESTS 61 217 16896000
201095131 Msstt E April 7, 2023, 4:21 a.m. OK GNU C++20 (64) TESTS 61 217 136294400
201085828 EMBailey E April 7, 2023, 12:39 a.m. OK GNU C++20 (64) TESTS 61 218 12800000
201075876 Restricted E April 6, 2023, 8:51 p.m. OK Java 11 TESTS 61 1902 170188800
201059746 TCchen E April 6, 2023, 5:42 p.m. OK Java 17 TESTS 61 1013 79564800
201080250 UniversalAdmin E April 6, 2023, 10:30 p.m. OK Java 8 TESTS 61 1122 45670400
201076658 UniversalAdmin E April 6, 2023, 9 p.m. OK Java 8 TESTS 61 1122 45670400
201079694 UniversalAdmin E April 6, 2023, 10:17 p.m. OK Java 8 TESTS 61 1216 41779200
201079475 UniversalAdmin E April 6, 2023, 10:13 p.m. OK Java 8 TESTS 61 1232 41779200
201086534 Little_Sheep_Yawn E April 7, 2023, 12:57 a.m. OK PyPy 3-64 TESTS 61 2511 138649600
201086642 Little_Sheep_Yawn E April 7, 2023, 12:59 a.m. OK PyPy 3-64 TESTS 61 2573 138752000
201086344 Little_Sheep_Yawn E April 7, 2023, 12:52 a.m. OK PyPy 3-64 TESTS 61 2635 148377600
201091790 onemoreq E April 7, 2023, 3:10 a.m. OK PyPy 3-64 TESTS 61 2838 137420800
201056125 zouyu9631 E April 6, 2023, 5:10 p.m. OK PyPy 3-64 TESTS 61 2978 162611200
201053971 thewaxmango E April 6, 2023, 4:55 p.m. OK PyPy 3-64 TESTS 61 2995 149401600

remove filters

Back to search problems