Educational Codeforces Round 140 (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
1767 Educational Codeforces Round 140 (Rated for Div. 2) FINISHED False 7200 60621899 Dec. 16, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 940 ) E Algebra Flash PROGRAMMING bitmasks brute force dp graphs meet-in-the-middle trees

B'Changelog: Thank you for the continued support of the game! Huh, is that it? Slightly disappointed, you boot up the game and click on the new gamemode. It says "Colored platforms". There are n platforms, numbered from 1 to n , placed one after another. There are m colors available in the game, numbered from 1 to m . The i -th platform is colored c_i . You start on the platform 1 and want to reach platform n . In one move, you can jump from some platform i to platforms i + 1 or i + 2 . All platforms are initially deactivated (including platforms 1 and n ). For each color j , you can pay x_j coins to activate all platforms of that color. You want to activate some platforms so that you could start on an activated platform 1 , jump through some activated platforms and reach an activated platform n . What 's the smallest amount of coins you can spend to achieve that? The first line contains two integers n and m ( 2 <= n <= 3 cdot 10^5 ; 1 <= m <= 40 ) -- the number of platforms and the number of colors, respectively. The second line contains n integers c_1, c_2, ... , c_n ( 1 <= c_i <= m ) -- the colors of the platforms. The third line contains m integers x_1, x_2, ... , x_m ( 1 <= x_i <= 10^7 ) -- the cost of activating all platforms of each color. Print the smallest amount of coins you can spend to activate some platforms so that you could start on an activated platform 1 , jump through some activated platforms and reach an activated platform n . '...

Tutorials

110225

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
185554917 rickbaishuak E Dec. 16, 2022, 7:14 p.m. OK GNU C++14 TESTS 77 78 2662400
185582565 rickbaishuak E Dec. 17, 2022, 5:27 a.m. OK GNU C++14 TESTS 77 93 2662400
185533309 NoPotato E Dec. 16, 2022, 4:33 p.m. OK GNU C++14 TESTS 77 93 5427200
185572304 nixnehc E Dec. 17, 2022, 1:33 a.m. OK GNU C++14 TESTS 77 109 5427200
185581655 wsday E Dec. 17, 2022, 5:12 a.m. OK GNU C++14 TESTS 77 140 29388800
185533362 le0n E Dec. 16, 2022, 4:33 p.m. OK GNU C++14 TESTS 77 171 86425600
185522803 gubeiqg E Dec. 16, 2022, 4:06 p.m. OK GNU C++14 TESTS 77 234 4198400
185530171 silly-1-2-3 E Dec. 16, 2022, 4:26 p.m. OK GNU C++14 TESTS 77 249 1228800
185570243 xianggl E Dec. 17, 2022, 12:21 a.m. OK GNU C++14 TESTS 77 249 9625600
185526909 DeadlyPillow E Dec. 16, 2022, 4:17 p.m. OK GNU C++14 TESTS 77 249 206540800
185578735 Luca E Dec. 17, 2022, 4:17 a.m. OK GNU C++17 TESTS 77 62 307200
185572353 hqztrue E Dec. 17, 2022, 1:35 a.m. OK GNU C++17 TESTS 77 78 204800
185566223 tostes E Dec. 16, 2022, 10:08 p.m. OK GNU C++17 TESTS 77 109 2457600
185565964 tostes E Dec. 16, 2022, 10:02 p.m. OK GNU C++17 TESTS 77 109 2457600
185582275 jhdonghj112 E Dec. 17, 2022, 5:22 a.m. OK GNU C++17 TESTS 77 124 9830400
185566023 tostes E Dec. 16, 2022, 10:03 p.m. OK GNU C++17 TESTS 77 140 2457600
185528136 -this-is-obd- E Dec. 16, 2022, 4:21 p.m. OK GNU C++17 TESTS 77 140 18022400
185531942 ne4eHbKa E Dec. 16, 2022, 4:30 p.m. OK GNU C++17 TESTS 77 171 8396800
185528028 gabrielwu E Dec. 16, 2022, 4:20 p.m. OK GNU C++17 TESTS 77 171 12697600
185529902 hoainiem E Dec. 16, 2022, 4:25 p.m. OK GNU C++17 TESTS 77 171 19558400
185546848 J_B_Y E Dec. 16, 2022, 5:59 p.m. OK GNU C++17 (64) TESTS 77 15 3584000
185571574 Alex_Wei E Dec. 17, 2022, 1:11 a.m. OK GNU C++17 (64) TESTS 77 46 9625600
185535020 Seyaua E Dec. 16, 2022, 4:40 p.m. OK GNU C++17 (64) TESTS 77 78 1228800
185533954 Hanasaki E Dec. 16, 2022, 4:34 p.m. OK GNU C++17 (64) TESTS 77 78 10854400
185540012 Melacau E Dec. 16, 2022, 5:08 p.m. OK GNU C++17 (64) TESTS 77 93 24985600
185534360 Enucai E Dec. 16, 2022, 4:34 p.m. OK GNU C++17 (64) TESTS 77 93 66560000
185538955 Melacau E Dec. 16, 2022, 5:02 p.m. OK GNU C++17 (64) TESTS 77 109 24985600
185574269 zhangshaojia E Dec. 17, 2022, 2:30 a.m. OK GNU C++17 (64) TESTS 77 109 40857600
185542557 Merlininice E Dec. 16, 2022, 5:26 p.m. OK GNU C++17 (64) TESTS 77 156 1331200
185532674 emthrm E Dec. 16, 2022, 4:32 p.m. OK GNU C++17 (64) TESTS 77 156 10547200
185557935 Igorjan94 E Dec. 16, 2022, 7:48 p.m. OK GNU C++20 (64) TESTS 77 46 1228800
185549262 YahiaSherif E Dec. 16, 2022, 6:19 p.m. OK GNU C++20 (64) TESTS 77 46 1228800
185541486 Nero E Dec. 16, 2022, 5:18 p.m. OK GNU C++20 (64) TESTS 77 46 1228800
185541976 Awcotn_tct E Dec. 16, 2022, 5:21 p.m. OK GNU C++20 (64) TESTS 77 46 5427200
185565378 dreamoon_love_AA E Dec. 16, 2022, 9:49 p.m. OK GNU C++20 (64) TESTS 77 46 16896000
185582081 chychy E Dec. 17, 2022, 5:19 a.m. OK GNU C++20 (64) TESTS 77 61 1228800
185552762 dmenezes E Dec. 16, 2022, 6:51 p.m. OK GNU C++20 (64) TESTS 77 62 1228800
185546658 magnus.hegdahl E Dec. 16, 2022, 5:58 p.m. OK GNU C++20 (64) TESTS 77 62 1228800
185542957 magnus.hegdahl E Dec. 16, 2022, 5:29 p.m. OK GNU C++20 (64) TESTS 77 62 1228800
185550172 Rozaliya E Dec. 16, 2022, 6:27 p.m. OK GNU C++20 (64) TESTS 77 62 5427200
185552416 golions E Dec. 16, 2022, 6:48 p.m. OK Java 8 TESTS 77 155 0
185531957 misorin E Dec. 16, 2022, 4:30 p.m. OK PyPy 3-64 TESTS 77 655 37990400
185535550 misorin E Dec. 16, 2022, 4:42 p.m. OK PyPy 3-64 TESTS 77 686 43417600

remove filters

Back to search problems