Codeforces Round 1117 (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
2257 Codeforces Round 1117 (Div. 2) FINISHED False 7200 2561053 Aug. 17, 2026, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 384 ) F2 Beaver's Jumping Track (Hard Version) PROGRAMMING data structures dp matrices

This is the hard version of the problem. The difference between the versions is that in this version, the constraint on (x) and time limit are higher. You can hack only if you solved all versions of this problem. The Beaver is training to jump long distances. The Beaver can already jump (x) meters. However, just jumping as far as possible is easy and boring. Therefore, the Beaver has created an unusual training track for jumping. The track consists of (n) platforms; each platform consists of (d_i) meter cells. If the Beaver stands on platform number (i), jumps, and lands back on the same platform, this results in (s_i) penalty points being awarded; otherwise, no penalty points are given. The Beaver can jump forward any integer number of cells less than or equal to (x). Note that the Beaver can skip one or more platforms in a single jump without landing on them at all. The Beaver has unlimited computational power in its mind and always jumps in such a way as to minimize the total penalty for passing the track. Moreover, the track is not constant, and sometimes the lengths and penalties of some platforms change. Learn to calculate what penalty the Beaver will get if it starts standing on the first cell of platform number (l) and finishes standing on the last cell of platform number (r). The first line contains three integers (n), (q), (x) — the number of sections of the track, the number of queries, and the maximum jump length, respectively ((1 \leq n \leq 10^6); (1 \leq q \leq 10^4); (1 \leq x \leq 10)). The second line contains (n) integers (d_i) — the lengths of the platforms ((1 \leq d_i \leq 10^7)). The third line contains (n) integers (s_i) — the penalties ((1 \leq s_i \leq 10^5)). The following (q) lines describe the queries in one of the following formats: " 1 (i) (v) " — set the length of the (i)-th platform to (v) ((1 \leq i \leq n); $$$1 \le

Tutorials

Codeforces Round 1117 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
387463599 BIM_S F2 Aug. 17, 2026, 4:33 p.m. OK C++17 (GCC 7-32) TESTS 57 718 36147200
387512785 rnzhemvhtm F2 Aug. 18, 2026, 5:02 a.m. OK C++17 (GCC 7-32) TESTS 57 968 58265600
387460133 fool_7 F2 Aug. 17, 2026, 4:24 p.m. OK C++17 (GCC 7-32) TESTS 57 1437 80896000
387501955 yyy_yyy F2 Aug. 18, 2026, 2:17 a.m. OK C++17 (GCC 7-32) TESTS 57 1718 83660800
387457773 avishka7 F2 Aug. 17, 2026, 4:18 p.m. OK C++17 (GCC 7-32) TESTS 57 2015 64716800
387478602 Shivani_103 F2 Aug. 17, 2026, 6:32 p.m. OK C++17 (GCC 7-32) TESTS 57 2421 79360000
387460986 naixinganhuoyyp F2 Aug. 17, 2026, 4:27 p.m. OK C++17 (GCC 7-32) TESTS 57 2671 58163200
387463564 kalimm F2 Aug. 17, 2026, 4:33 p.m. OK C++17 (GCC 7-32) TESTS 57 2906 970342400
387466836 qqqaaazzz F2 Aug. 17, 2026, 4:57 p.m. OK C++17 (GCC 7-32) TESTS 57 3000 719872000
387468631 wfgold F2 Aug. 17, 2026, 5:09 p.m. OK C++20 (GCC 13-64) TESTS 57 796 223129600
387454499 Payea F2 Aug. 17, 2026, 4:09 p.m. OK C++20 (GCC 13-64) TESTS 57 1375 51404800
387516886 JoshitaPachar F2 Aug. 18, 2026, 5:55 a.m. OK C++20 (GCC 13-64) TESTS 57 1453 34508800
387498467 lijunze12 F2 Aug. 18, 2026, 1:10 a.m. OK C++20 (GCC 13-64) TESTS 57 1734 809676800
387506270 include_BM F2 Aug. 18, 2026, 3:30 a.m. OK C++20 (GCC 13-64) TESTS 57 2062 196812800
387494061 OG_Matveychick1 F2 Aug. 17, 2026, 10:53 p.m. OK C++20 (GCC 13-64) TESTS 57 2265 852684800
387491236 Sersp3 F2 Aug. 17, 2026, 9:47 p.m. OK C++20 (GCC 13-64) TESTS 57 2359 317644800
387467610 pskobx F2 Aug. 17, 2026, 5:02 p.m. OK C++20 (GCC 13-64) TESTS 57 2453 317542400
387515026 masy2011 F2 Aug. 18, 2026, 5:32 a.m. OK C++20 (GCC 13-64) TESTS 57 2500 224563200
387470988 cowwycow F2 Aug. 17, 2026, 5:26 p.m. OK C++20 (GCC 13-64) TESTS 57 2546 821657600
387469424 rgnerdplayer F2 Aug. 17, 2026, 5:15 p.m. OK C++23 (GCC 14-64, msys2) TESTS 57 750 36454400
387504217 A1_hyperion F2 Aug. 18, 2026, 2:57 a.m. OK C++23 (GCC 14-64, msys2) TESTS 57 812 92569600
387458902 rgnerdplayer F2 Aug. 17, 2026, 4:21 p.m. OK C++23 (GCC 14-64, msys2) TESTS 57 875 40038400
387510365 Yzm007 F2 Aug. 18, 2026, 4:29 a.m. OK C++23 (GCC 14-64, msys2) TESTS 57 875 79462400
387466607 rgnerdplayer F2 Aug. 17, 2026, 4:56 p.m. OK C++23 (GCC 14-64, msys2) TESTS 57 890 39936000
387472699 rgnerdplayer F2 Aug. 17, 2026, 5:40 p.m. OK C++23 (GCC 14-64, msys2) TESTS 57 921 36454400
387467531 ttamx F2 Aug. 17, 2026, 5:02 p.m. OK C++23 (GCC 14-64, msys2) TESTS 57 937 113152000
387472228 rgnerdplayer F2 Aug. 17, 2026, 5:36 p.m. OK C++23 (GCC 14-64, msys2) TESTS 57 1000 36454400
387491220 mgranger22 F2 Aug. 17, 2026, 9:46 p.m. OK C++23 (GCC 14-64, msys2) TESTS 57 1093 57548800
387491988 me_nahi_bataunga F2 Aug. 17, 2026, 10:07 p.m. OK C++23 (GCC 14-64, msys2) TESTS 57 1203 38604800
387456003 snikithakumar7906 F2 Aug. 17, 2026, 4:13 p.m. OK Java 21 TESTS 57 2296 132915200

remove filters

Back to search problems