Educational Codeforces Round 183 (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
2145 Educational Codeforces Round 183 (Rated for Div. 2) FINISHED False 7200 16644323 Oct. 6, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 520 ) G Cost of Coloring PROGRAMMING combinatorics fft math

There is a sheet of paper divided into (n) rows and (m) columns. Initially, no cell of this sheet is colored. In one operation, you can choose any column or row and color it (if some cells were previously colored, their color changes to the new one). During the first operation, cells are colored with color (1); during operation (i > 1), you can choose either color (c_{i-1}) or (c_{i-1} + 1), where (c_{i-1}) is the color chosen during operation ((i-1)). We call the final coloring beautiful if the following conditions are met: each cell is colored; for each color from (1) to (k), there is at least one cell colored in that color, and no other colors are used in the coloring. For a beautiful final coloring, we define its value as the minimum number of operations required to achieve it. For each (i) from (\min(n, m)) to (n + m - 1), calculate the number of beautiful colorings with value (i). Two colorings are considered different if the color of at least one cell differs in these colorings. The input consists of a single line containing three integers (n, m, k) ((2 \le n, m \le 2000); (1 \le k \le n + m - 1)). For each (i) from (\min(n, m)) to (n + m - 1), output a single integer — the number of beautiful colorings with value (i), taken modulo (998244353).

Tutorials

Educational Codeforces Round 183 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
342373858 Southern_Dynasty G Oct. 7, 2025, 2:17 a.m. OK C++17 (GCC 7-32) TESTS 29 265 128614400
342455123 autumoon G Oct. 7, 2025, 2:34 p.m. OK C++17 (GCC 7-32) TESTS 29 327 168550400
342376682 hoaquangthang G Oct. 7, 2025, 3:03 a.m. OK C++17 (GCC 7-32) TESTS 29 421 124620800
342517514 fangzx G Oct. 8, 2025, 12:23 a.m. OK C++17 (GCC 7-32) TESTS 29 530 402432000
342405288 stone_heart G Oct. 7, 2025, 8:21 a.m. OK C++17 (GCC 7-32) TESTS 29 624 263065600
342490446 maxplus G Oct. 7, 2025, 6:03 p.m. OK C++20 (GCC 13-64) TESTS 29 77 102400
342361435 Xerxes G Oct. 6, 2025, 9:24 p.m. OK C++20 (GCC 13-64) TESTS 29 140 102400
342454218 ALAov G Oct. 7, 2025, 2:29 p.m. OK C++20 (GCC 13-64) TESTS 29 156 65024000
342516597 kevinyang G Oct. 8, 2025, 12:03 a.m. OK C++20 (GCC 13-64) TESTS 29 187 157798400
342453986 Bahamin G Oct. 7, 2025, 2:28 p.m. OK C++20 (GCC 13-64) TESTS 29 233 64307200
342378157 njwrz G Oct. 7, 2025, 3:25 a.m. OK C++20 (GCC 13-64) TESTS 29 233 128716800
342356720 liympanda G Oct. 6, 2025, 8:17 p.m. OK C++20 (GCC 13-64) TESTS 29 233 150425600
342414358 Feggy G Oct. 7, 2025, 9:34 a.m. OK C++20 (GCC 13-64) TESTS 29 249 257126400
342498038 ahmetalp G Oct. 7, 2025, 6:57 p.m. OK C++20 (GCC 13-64) TESTS 29 264 65228800
342379234 hengliao G Oct. 7, 2025, 3:39 a.m. OK C++20 (GCC 13-64) TESTS 29 264 257228800
342340101 KshitijxRex G Oct. 6, 2025, 5:52 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 78 0
342358372 va_adi G Oct. 6, 2025, 8:36 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 124 102400
342377017 xqqddqqc G Oct. 7, 2025, 3:09 a.m. OK C++23 (GCC 14-64, msys2) TESTS 29 125 204800
342426883 gooonn G Oct. 7, 2025, 11:14 a.m. OK C++23 (GCC 14-64, msys2) TESTS 29 140 129126400
342412506 saidqulovsarvar669 G Oct. 7, 2025, 9:18 a.m. OK C++23 (GCC 14-64, msys2) TESTS 29 140 129126400
342358550 va_adi G Oct. 6, 2025, 8:39 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 155 0
342386370 Auchenai01 G Oct. 7, 2025, 5:13 a.m. OK C++23 (GCC 14-64, msys2) TESTS 29 155 65433600
342458010 AlexixRugis G Oct. 7, 2025, 2:49 p.m. OK C++23 (GCC 14-64, msys2) TESTS 29 155 125030400
342410289 fcy2023 G Oct. 7, 2025, 9 a.m. OK C++23 (GCC 14-64, msys2) TESTS 29 155 128716800
342430456 Grisses G Oct. 7, 2025, 11:40 a.m. OK C++23 (GCC 14-64, msys2) TESTS 29 156 160870400
342381153 Ab_hoga_real_Cumback G Oct. 7, 2025, 4:07 a.m. OK Java 21 TESTS 29 906 614400
342381404 Ab_hoga_real_Cumback G Oct. 7, 2025, 4:10 a.m. OK Java 21 TESTS 29 952 1536000
342374660 Tomodovodoo G Oct. 7, 2025, 2:31 a.m. OK PyPy 3-64 TESTS 29 156 2662400
342374608 Tomodovodoo G Oct. 7, 2025, 2:30 a.m. OK PyPy 3-64 TESTS 29 156 3174400
342375429 Tomodovodoo G Oct. 7, 2025, 2:45 a.m. OK PyPy 3-64 TESTS 29 171 3174400
342374940 Tomodovodoo G Oct. 7, 2025, 2:36 a.m. OK PyPy 3-64 TESTS 29 171 3174400
342372848 Tomodovodoo G Oct. 7, 2025, 1:59 a.m. OK PyPy 3-64 TESTS 29 171 3174400
342372838 Tomodovodoo G Oct. 7, 2025, 1:59 a.m. OK PyPy 3-64 TESTS 29 171 3174400
342372467 Tomodovodoo G Oct. 7, 2025, 1:52 a.m. OK PyPy 3-64 TESTS 29 171 3174400
342376454 Tomodovodoo G Oct. 7, 2025, 3 a.m. OK PyPy 3-64 TESTS 29 187 3276800
342375486 Tomodovodoo G Oct. 7, 2025, 2:46 a.m. OK PyPy 3-64 TESTS 29 202 3174400
342372367 Tomodovodoo G Oct. 7, 2025, 1:51 a.m. OK PyPy 3-64 TESTS 29 202 4096000
342459440 sansen G Oct. 7, 2025, 2:57 p.m. OK Rust 2021 TESTS 29 140 0

remove filters

Back to search problems