Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals)

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
2215 Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals) FINISHED False 10800 4494296 April 12, 2026, 5:35 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 134 ) D EXPloration, EXPloitation, and Gain Some EXPerience! PROGRAMMING bitmasks brute force dp greedy implementation

Years later, Shiro and White both enrolled in THU. After learning about the EXP3 algorithm for the "Multi-armed Bandit" problem in class, they suddenly had a whim and devised a game unrelated to this. There are (n) positions arranged in a row, numbered (1,2,\ldots,n) from front to back. Each position can be in one of two states: blackened or unblackened . Shiro's piece starts at position (1), and White's piece starts at position (2). At the beginning of the game, only positions (1) and (2) are blackened . The players take turns making moves, with Shiro going first. In each turn, the current player must choose their own piece and jump forward (1) to (4) steps to an unblackened position, and blacken the position they land on. If a player cannot make a legal move (i.e., all positions within (1) to (4) steps forward from their current position are either beyond (n) or already blackened ), the player will skip this turn (i.e., make no move). The game ends when both Shiro and White cannot make any valid move. It is easy to prove that the game is guaranteed to terminate within a finite number of steps. For each (3\le k\le n), position (k) has a positive integer weight (a_k). Whenever a player blackens such a position (k), their score increases by (a_k). Both Shiro and White start with a score of (0), and both of them aim to maximize the difference between their own score and their opponent's score by the end of the game. Let (d=s_1 - s_2), where (s_1) is Shiro's score and (s_2) is White's score. Shiro and White want to know: if both players act according to optimal strategies, what will be the value of (d) after the game ends? Since this problem is too complex, they have turned to you from THUSAA. You have to help them solve the problem. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 1000)). The description of the

Tutorials

152930

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
370793333 potato167 D April 12, 2026, 8:22 a.m. OK C++17 (GCC 7-32) TESTS 16 3218 102400
370789579 AntiBsayer D April 12, 2026, 7:54 a.m. OK C++17 (GCC 7-32) TESTS 16 3453 1843200
370808938 Cocoly1990 D April 12, 2026, 10:39 a.m. OK C++17 (GCC 7-32) TESTS 16 3703 1433600
370794482 RockyYue D April 12, 2026, 8:30 a.m. OK C++17 (GCC 7-32) TESTS 16 4750 26112000
370841251 Xellos D April 12, 2026, 3:22 p.m. OK C++20 (GCC 13-64) TESTS 17 250 47411200
370786324 Sana D April 12, 2026, 7:32 a.m. OK C++20 (GCC 13-64) TESTS 16 671 920064000
370802881 Swishy123 D April 12, 2026, 9:45 a.m. OK C++20 (GCC 13-64) TESTS 16 750 526438400
370790118 StarSilk D April 12, 2026, 7:58 a.m. OK C++20 (GCC 13-64) TESTS 16 859 1843200
370792214 AA-2007 D April 12, 2026, 8:13 a.m. OK C++20 (GCC 13-64) TESTS 16 953 1843200
370791131 end_of_a_dream D April 12, 2026, 8:05 a.m. OK C++20 (GCC 13-64) TESTS 16 1015 5222400
370805983 QwertyPi D April 12, 2026, 10:11 a.m. OK C++20 (GCC 13-64) TESTS 16 1437 409600
370807855 RaresPoinaru D April 12, 2026, 10:29 a.m. OK C++20 (GCC 13-64) TESTS 16 1625 694169600
370790356 SanguineChameleon D April 12, 2026, 8 a.m. OK C++20 (GCC 13-64) TESTS 16 1718 937369600
370820562 wabca D April 12, 2026, 12:21 p.m. OK C++20 (GCC 13-64) TESTS 17 1812 834662400
370791896 ljw01 D April 12, 2026, 8:11 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 218 1228800
370834015 XiangXunyi D April 12, 2026, 2:17 p.m. OK C++23 (GCC 14-64, msys2) TESTS 17 437 449331200
370822528 tzl_Dedicatus545 D April 12, 2026, 12:38 p.m. OK C++23 (GCC 14-64, msys2) TESTS 17 718 2662400
370792771 LaRagde D April 12, 2026, 8:17 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 718 825446400
370853769 maroonrk D April 12, 2026, 5:19 p.m. OK C++23 (GCC 14-64, msys2) TESTS 17 765 3481600
370793147 1G1U4E5S1T4 D April 12, 2026, 8:20 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 859 437350400
370794454 k1r1t0 D April 12, 2026, 8:30 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 968 30105600
370785039 maspy D April 12, 2026, 7:24 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 1000 823500800
370805724 CountingGroup D April 12, 2026, 10:09 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 1031 934195200
370871633 jlass_ D April 12, 2026, 9:17 p.m. OK C++23 (GCC 14-64, msys2) TESTS 17 1484 677785600

remove filters

Back to search problems