Educational Codeforces Round 186 (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
2182 Educational Codeforces Round 186 (Rated for Div. 2) FINISHED False 7200 9386723 Dec. 29, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 15354 ) C Production of Snowmen PROGRAMMING combinatorics dp

To create a truly festive atmosphere, Santa's helpers have opened a factory for producing snowmen! Each snowman consists of three snowballs — a head, a torso, and legs. For the snowman to be stable, the ball forming the legs must be strictly larger than the ball forming the torso; in turn, the ball forming the torso must be strictly larger than the ball forming the head. Formally, if we denote the sizes of the head, torso, and legs as (a, b, c) respectively, the snowman will be stable if and only if (a < b < c). At the snowman production factory, there are three conveyors, each containing (n) snowballs. The first conveyor contains balls of sizes (a_1, a_2, \dots, a_n); the second contains balls of sizes (b_1, b_2, \dots, b_n); the third contains balls of sizes (c_1, c_2, \dots, c_n). The conveyors are cyclic; in other words, after the element numbered (n), the element numbered (1) follows again, and we can consider that the ball numbered (i) and the ball numbered (i+n) (as well as the ball numbered (i+2n), (i+3n), and so on) are the same ball. To produce snowmen, it is necessary to specify three parameters (i, j, k) ((1 \le i, j, k \le n)), indicating which balls on each conveyor the production starts from. After that, the snowmen will be assembled from the balls as follows: the first snowman will have a head of size (a_i), a torso of size (b_j), and legs of size (c_k); the second snowman will have a head of size (a_{i+1}), a torso of size (b_{j+1}), and legs of size (c_{k+1}); and so on; the (n)-th (last) snowman will have a head of size (a_{i+n-1}), a torso of size (b_{j+n-1}), and legs of size (c_{k+n-1}). The parameters (i, j, k) must be chosen in such a way that all (n) snowmen are stable. Your task is to count the number of suitable combinations of parameters. The first line contains one integer (t) ((1 \le t \le 5000)) — the number of test

Tutorials

Educational Codeforces Round 186 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
355820170 nksammirPL C Dec. 30, 2025, 1:56 a.m. OK C# 13 TESTS 14 218 1126400
355799073 PseudoEngineer2006 C Dec. 29, 2025, 6:42 p.m. OK C++17 (GCC 7-32) TESTS 14 46 0
355790763 Gulam_Kibria C Dec. 29, 2025, 5:24 p.m. OK C++17 (GCC 7-32) TESTS 14 46 204800
355911898 rishitak C Dec. 30, 2025, 6:14 p.m. OK C++17 (GCC 7-32) TESTS 14 62 0
355908339 aryan4995 C Dec. 30, 2025, 5:43 p.m. OK C++17 (GCC 7-32) TESTS 14 62 0
355876212 WuSh C Dec. 30, 2025, 1:08 p.m. OK C++17 (GCC 7-32) TESTS 14 62 0
355791325 EuMirea21 C Dec. 29, 2025, 5:29 p.m. OK C++17 (GCC 7-32) TESTS 14 62 0
355910791 Nicolo_010 C Dec. 30, 2025, 6:04 p.m. OK C++17 (GCC 7-32) TESTS 14 62 102400
355870770 velox_23 C Dec. 30, 2025, 12:15 p.m. OK C++17 (GCC 7-32) TESTS 14 62 102400
355853742 gaurav_o7 C Dec. 30, 2025, 9:36 a.m. OK C++17 (GCC 7-32) TESTS 14 62 102400
355852106 HIGGIGIGgugig C Dec. 30, 2025, 9:20 a.m. OK C++17 (GCC 7-32) TESTS 14 62 102400
355902842 rohanzzz7 C Dec. 30, 2025, 4:58 p.m. OK C++20 (GCC 13-64) TESTS 14 46 0
355853595 ashwin_22 C Dec. 30, 2025, 9:35 a.m. OK C++20 (GCC 13-64) TESTS 14 46 0
355913150 brocode.forces C Dec. 30, 2025, 6:25 p.m. OK C++20 (GCC 13-64) TESTS 14 46 102400
355855572 ashwin_22 C Dec. 30, 2025, 9:54 a.m. OK C++20 (GCC 13-64) TESTS 14 46 102400
355877436 MonkeySpinning C Dec. 30, 2025, 1:19 p.m. OK C++20 (GCC 13-64) TESTS 14 46 4915200
355939455 MoiTea_Neko C Dec. 31, 2025, 3:56 a.m. OK C++20 (GCC 13-64) TESTS 14 46 7270400
355907940 walterhwhite C Dec. 30, 2025, 5:40 p.m. OK C++20 (GCC 13-64) TESTS 14 62 0
355946962 GraphPoolDP_42 C Dec. 31, 2025, 6:04 a.m. OK C++20 (GCC 13-64) TESTS 14 62 0
355927128 jkr07 C Dec. 30, 2025, 10:09 p.m. OK C++20 (GCC 13-64) TESTS 14 62 0
355909871 abhijeetsrz C Dec. 30, 2025, 5:56 p.m. OK C++20 (GCC 13-64) TESTS 14 62 0
355793451 Uk01 C Dec. 29, 2025, 5:49 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 46 0
355898269 vp239 C Dec. 30, 2025, 4:19 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 46 0
355871095 Ljj18 C Dec. 30, 2025, 12:19 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 46 0
355863806 Bashar._.Kamel C Dec. 30, 2025, 11:10 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 46 0
355853203 Fizz_21 C Dec. 30, 2025, 9:31 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 46 0
355838022 riz82 C Dec. 30, 2025, 7:07 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 46 0
355798153 mankifg C Dec. 29, 2025, 6:32 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 46 102400
355910165 madhavG C Dec. 30, 2025, 5:58 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 46 102400
355839860 pepperly C Dec. 30, 2025, 7:25 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 46 307200
355882841 warframe C Dec. 30, 2025, 2:05 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 46 2457600
355792378 zhanzhijiea C Dec. 29, 2025, 5:39 p.m. OK GNU C11 TESTS 14 46 102400
355841635 Dape07 C Dec. 30, 2025, 7:41 a.m. OK GNU C11 TESTS 14 62 102400
355842280 Dape07 C Dec. 30, 2025, 7:47 a.m. OK GNU C11 TESTS 14 62 102400
355915396 premrebounds C Dec. 30, 2025, 6:48 p.m. OK GNU C11 TESTS 14 109 0
355846278 Dape07 C Dec. 30, 2025, 8:24 a.m. OK GNU C11 TESTS 14 156 102400
355823852 daoqi C Dec. 30, 2025, 3:14 a.m. OK Go TESTS 14 62 307200
355861546 Leeeee C Dec. 30, 2025, 10:50 a.m. OK Go TESTS 14 500 204800
355863891 glebsamsonov C Dec. 30, 2025, 11:11 a.m. OK Go TESTS 14 1453 921600
355930235 dzhi C Dec. 30, 2025, 11:53 p.m. OK Java 21 TESTS 14 281 2150400
355896108 real_dusk_84 C Dec. 30, 2025, 4:01 p.m. OK Java 21 TESTS 14 312 1024000
355939668 Sansi_28 C Dec. 31, 2025, 4:01 a.m. OK Java 21 TESTS 14 328 921600
355939128 santhoshh-kumar C Dec. 31, 2025, 3:48 a.m. OK Java 21 TESTS 14 328 1024000
355844099 shreyansha.ug23.cs C Dec. 30, 2025, 8:05 a.m. OK Java 21 TESTS 14 328 2252800
355796194 Subrahmanya_V_Hegde C Dec. 29, 2025, 6:14 p.m. OK Java 21 TESTS 14 343 1024000
355909738 KomalMaurya C Dec. 30, 2025, 5:55 p.m. OK Java 21 TESTS 14 343 1433600
355804730 kevinliu_ C Dec. 29, 2025, 7:48 p.m. OK Java 21 TESTS 14 359 614400
355800595 aniketHacker C Dec. 29, 2025, 6:59 p.m. OK Java 21 TESTS 14 359 614400
355795280 This_Is_Amazing C Dec. 29, 2025, 6:06 p.m. OK Java 21 TESTS 14 359 614400
355914585 24501a05l8 C Dec. 30, 2025, 6:40 p.m. OK Java 8 TESTS 14 234 0
355860660 kidus72 C Dec. 30, 2025, 10:42 a.m. OK Java 8 TESTS 14 250 0
355860424 kidus72 C Dec. 30, 2025, 10:40 a.m. OK Java 8 TESTS 14 265 0
355858630 Vishalll_ C Dec. 30, 2025, 10:23 a.m. OK Java 8 TESTS 14 265 0
355799706 golions C Dec. 29, 2025, 6:49 p.m. OK Java 8 TESTS 14 265 0
355794192 flextai C Dec. 29, 2025, 5:56 p.m. OK Java 8 TESTS 14 453 0
355878602 parinaya05 C Dec. 30, 2025, 1:28 p.m. OK Java 8 TESTS 14 625 0
355865630 mishagam C Dec. 30, 2025, 11:27 a.m. OK Kotlin 1.9 TESTS 14 875 102400
355879902 DmitriyT C Dec. 30, 2025, 1:40 p.m. OK Kotlin 2.2 TESTS 14 875 204800
355792312 shxd1k C Dec. 29, 2025, 5:38 p.m. OK PyPy 3 TESTS 14 250 7065600
355856311 Cfcrpor C Dec. 30, 2025, 10:01 a.m. OK PyPy 3 TESTS 14 281 9420800
355789398 prashantsingh24816gp C Dec. 29, 2025, 5:13 p.m. OK PyPy 3 TESTS 14 281 9523200
355856390 Cfcrpor C Dec. 30, 2025, 10:01 a.m. OK PyPy 3 TESTS 14 328 9318400
355809515 ashrith.07 C Dec. 29, 2025, 9:05 p.m. OK PyPy 3 TESTS 14 343 7782400
355939377 andrewliu10523 C Dec. 31, 2025, 3:54 a.m. OK PyPy 3 TESTS 14 406 5632000
355939255 Ayyylmao C Dec. 31, 2025, 3:51 a.m. OK PyPy 3 TESTS 14 406 8704000
355798375 makhambet123 C Dec. 29, 2025, 6:35 p.m. OK PyPy 3 TESTS 14 437 6963200
355850814 Hasinisyam C Dec. 30, 2025, 9:07 a.m. OK PyPy 3 TESTS 14 578 5939200
355795735 ragruslan C Dec. 29, 2025, 6:10 p.m. OK PyPy 3 TESTS 14 687 6656000
355818160 bengold10 C Dec. 30, 2025, 12:45 a.m. OK PyPy 3-64 TESTS 14 109 8192000
355841638 Azusa C Dec. 30, 2025, 7:41 a.m. OK PyPy 3-64 TESTS 14 140 5632000
355838240 OAY71011 C Dec. 30, 2025, 7:08 a.m. OK PyPy 3-64 TESTS 14 140 5632000
355811072 masao C Dec. 29, 2025, 9:38 p.m. OK PyPy 3-64 TESTS 14 156 4403200
355802332 Hyoketsu_Senpai C Dec. 29, 2025, 7:18 p.m. OK PyPy 3-64 TESTS 14 156 7168000
355913848 jvatsal0709 C Dec. 30, 2025, 6:32 p.m. OK PyPy 3-64 TESTS 14 171 6144000
355823272 IchikaHoshino C Dec. 30, 2025, 3:02 a.m. OK PyPy 3-64 TESTS 14 171 6246400
355818866 srinandasai12 C Dec. 30, 2025, 1:11 a.m. OK PyPy 3-64 TESTS 14 187 5734400
355791094 elferjani C Dec. 29, 2025, 5:27 p.m. OK PyPy 3-64 TESTS 14 203 7270400
355811117 porkBarrel C Dec. 29, 2025, 9:39 p.m. OK PyPy 3-64 TESTS 14 218 4505600
355841927 Azusa C Dec. 30, 2025, 7:44 a.m. OK Python 3 TESTS 14 62 1433600
355841779 Azusa C Dec. 30, 2025, 7:43 a.m. OK Python 3 TESTS 14 62 1536000
355941271 Spheniscine C Dec. 31, 2025, 4:34 a.m. OK Rust 2021 TESTS 14 78 102400
355821592 chreh C Dec. 30, 2025, 2:30 a.m. OK Rust 2024 TESTS 14 109 0
355915974 mani_tyuG C Dec. 30, 2025, 6:55 p.m. OK Rust 2024 TESTS 14 156 0
355937893 hirose2020 C Dec. 31, 2025, 3:23 a.m. OK Rust 2024 TESTS 14 187 0

remove filters

Back to search problems