Codeforces Round 1000 (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
2063 Codeforces Round 1000 (Div. 2) FINISHED False 7200 38858123 Jan. 22, 2025, 12:05 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1520 ) F1 Counting Is Not Fun (Easy Version) PROGRAMMING combinatorics data structures dfs and similar dsu implementation math

This is the easy version of the problem. The difference between the versions is that in this version, the limits on (t) and (n) are smaller. You can hack only if you solved all versions of this problem. A bracket sequence is called balanced if it can be constructed by the following formal grammar. The empty sequence (\varnothing) is balanced. If the bracket sequence (A) is balanced, then (\mathtt{(}A\mathtt{)}) is also balanced. If the bracket sequences (A) and (B) are balanced, then the concatenated sequence (A B) is also balanced. For example, the sequences " (())() ", " () ", " (()(())) ", and the empty sequence are balanced, while " (() " and " (()))( " are not. Given a balanced bracket sequence (s), a pair of indices ((i,j)) ((i<j)) is called a good pair if (s_i) is ' ( ', (s_j) is ' ) ', and the two brackets are added simultaneously with respect to Rule 2 while constructing the sequence (s). For example, the sequence " (())() " has three different good pairs, which are ((1,4)), ((2,3)), and ((5,6)). One can show that any balanced bracket sequence of (2n) brackets contains exactly (n) different good pairs, and using any order of rules to construct the same bracket sequence will yield the same set of good pairs. Emily will play a bracket guessing game with John. The game is played as follows. Initially, John has a balanced bracket sequence (s) containing (n) different good pairs, which is not known to Emily. John tells Emily the value of (n) and asks Emily to guess the sequence. Throughout (n) turns, John gives Emily the following kind of clue on each turn. (l\;r): The sequence (s) contains a good pair ((l,r)). The clues that John gives Emily are pairwise distinct and do not contradict each other. At a certain point, Emily can be certain that the balanced bracket sequence satisfying the clues given so far is unique. For example, assume Emily knows th

Tutorials

Codeforces Round 1000 (Div. 2) — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
302479378 og.kostya F1 Jan. 22, 2025, 3:55 p.m. OK C# 10 TESTS 24 1702 8601600
302522305 nhho F1 Jan. 22, 2025, 10:12 p.m. OK C++17 (GCC 7-32) TESTS 24 78 24064000
302482743 LOL_I_AM_SERZH F1 Jan. 22, 2025, 4:14 p.m. OK C++17 (GCC 7-32) TESTS 24 93 102400
302467247 gabriel88766 F1 Jan. 22, 2025, 2:56 p.m. OK C++17 (GCC 7-32) TESTS 24 93 9728000
302545270 golions F1 Jan. 23, 2025, 4:47 a.m. OK C++17 (GCC 7-32) TESTS 24 93 14438400
302467706 sunrise524288 F1 Jan. 22, 2025, 2:58 p.m. OK C++17 (GCC 7-32) TESTS 24 93 26521600
302479920 Caylex F1 Jan. 22, 2025, 3:58 p.m. OK C++17 (GCC 7-32) TESTS 24 108 1331200
302540140 OctoberEstuary F1 Jan. 23, 2025, 3:37 a.m. OK C++17 (GCC 7-32) TESTS 24 109 409600
302480835 Caylex F1 Jan. 22, 2025, 4:03 p.m. OK C++17 (GCC 7-32) TESTS 24 124 1228800
302472760 sujalxpro F1 Jan. 22, 2025, 3:20 p.m. OK C++17 (GCC 7-32) TESTS 24 124 16076800
302540791 xie_lzh F1 Jan. 23, 2025, 3:46 a.m. OK C++17 (GCC 7-32) TESTS 24 202 62566400
302518860 DylanSmith F1 Jan. 22, 2025, 9:06 p.m. OK C++20 (GCC 13-64) TESTS 24 62 0
302460373 fallleaves01 F1 Jan. 22, 2025, 2:03 p.m. OK C++20 (GCC 13-64) TESTS 24 62 921600
302534760 H_Z_J F1 Jan. 23, 2025, 2:22 a.m. OK C++20 (GCC 13-64) TESTS 24 62 25292800
302535071 wenqizhi F1 Jan. 23, 2025, 2:27 a.m. OK C++20 (GCC 13-64) TESTS 24 62 26521600
302478374 Hamed_Ghaffari F1 Jan. 22, 2025, 3:50 p.m. OK C++20 (GCC 13-64) TESTS 24 77 307200
302469629 HugeWide F1 Jan. 22, 2025, 3:06 p.m. OK C++20 (GCC 13-64) TESTS 24 77 512000
302467168 propane F1 Jan. 22, 2025, 2:56 p.m. OK C++20 (GCC 13-64) TESTS 24 77 4812800
302533986 AEM_YNxingkong F1 Jan. 23, 2025, 2:09 a.m. OK C++20 (GCC 13-64) TESTS 24 77 21913600
302471472 Thomas0802 F1 Jan. 22, 2025, 3:14 p.m. OK C++20 (GCC 13-64) TESTS 24 77 28876800
302535621 murder_drones F1 Jan. 23, 2025, 2:36 a.m. OK C++20 (GCC 13-64) TESTS 24 77 31334400
302505839 rgnerdplayer F1 Jan. 22, 2025, 6:42 p.m. OK C++23 (GCC 14-64, msys2) TESTS 24 46 102400
302525268 CutSandstone F1 Jan. 22, 2025, 11:24 p.m. OK C++23 (GCC 14-64, msys2) TESTS 24 61 102400
302468410 ttamx F1 Jan. 22, 2025, 3:01 p.m. OK C++23 (GCC 14-64, msys2) TESTS 24 61 102400
302529956 bitset F1 Jan. 23, 2025, 1:03 a.m. OK C++23 (GCC 14-64, msys2) TESTS 24 62 102400
302538155 hhhhyf F1 Jan. 23, 2025, 3:12 a.m. OK C++23 (GCC 14-64, msys2) TESTS 24 62 4915200
302521275 FzArK F1 Jan. 22, 2025, 9:51 p.m. OK C++23 (GCC 14-64, msys2) TESTS 24 62 7270400
302543241 Invinc1ble F1 Jan. 23, 2025, 4:19 a.m. OK C++23 (GCC 14-64, msys2) TESTS 24 62 26521600
302514200 Wael_Zaiback F1 Jan. 22, 2025, 8:01 p.m. OK C++23 (GCC 14-64, msys2) TESTS 24 77 102400
302467036 toam F1 Jan. 22, 2025, 2:56 p.m. OK C++23 (GCC 14-64, msys2) TESTS 24 77 1331200
302502577 mir F1 Jan. 22, 2025, 6:18 p.m. OK C++23 (GCC 14-64, msys2) TESTS 24 77 14540800
302524862 rainboy F1 Jan. 22, 2025, 11:13 p.m. OK GNU C11 TESTS 24 109 25292800
302471037 d.o. F1 Jan. 22, 2025, 3:12 p.m. OK Go TESTS 24 327 5529600
302528633 Little_Sheep_Yawn F1 Jan. 23, 2025, 12:39 a.m. OK PyPy 3-64 TESTS 24 342 21708800
302495038 x3mka F1 Jan. 22, 2025, 5:30 p.m. OK PyPy 3-64 TESTS 24 750 9932800

remove filters

Back to search problems