Educational Codeforces Round 185 (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
2170 Educational Codeforces Round 185 (Rated for Div. 2) FINISHED False 7200 12065123 Nov. 28, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 2301 ) E Binary Strings and Blocks PROGRAMMING combinatorics dp

Define a block in a binary string (a string consisting of characters 0 and/or 1 ) as its continuous substring of characters of the same type that cannot be extended either to the left or to the right. For example, in the string 110001111 , there are three blocks: 11 (from the (1)-st character to the (2)-nd character); 000 (from the (3)-rd character to the (5)-th character); 1111 (from the (6)-th character to the (9)-th character). The substring from the (7)-th character to the (9)-th character 111 is not a block because it can be extended to the left. The substring from the (1)-st character to the (5)-th character 11000 is not a block because it contains characters of different types. We call a string beautiful if we can remove exactly one block from it so that the resulting string consists of an odd number of blocks. For example: the string 110001111 is beautiful because we can remove the block from the (3)-rd to the (5)-th character, resulting in the string 111111 , which consists of one block; the string 1010 is beautiful because we can remove the block from the (1)-st to the (1)-st character, resulting in the string 010 , which consists of three blocks; the string 0000 is not beautiful because the only way to remove a block from it will result in an empty string, which consists of (0) blocks. You are given an integer (n) and (m) constraints, the (i)-th of which is described by a pair of integers (l_i, r_i). We denote the substring of the string (s) from character (l) to character (r) inclusive as (sl:r), that is, (sl:r = s_l s_{l+1} \dots s_r). Your task is to count the number of binary strings (s) of length (n) meeting the following condition: for each (i) from (1) to (m), the string (sl_i:r_i) is beautiful. The first line contains one integer (t) ((1 \le t \le 10^4)) — the number of test case. The first line of each te

Tutorials

Educational Codeforces Round 185 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
351060842 Sparkle_Infinity E Nov. 28, 2025, 4:31 p.m. OK C++17 (GCC 7-32) TESTS 27 155 8294400
351117086 alan-c E Nov. 29, 2025, 5:46 a.m. OK C++17 (GCC 7-32) TESTS 27 171 0
351051269 weebyes E Nov. 28, 2025, 4:06 p.m. OK C++17 (GCC 7-32) TESTS 27 171 0
351107462 Bona_Boss E Nov. 29, 2025, 3:15 a.m. OK C++17 (GCC 7-32) TESTS 27 171 102400
351061733 inverted69 E Nov. 28, 2025, 4:33 p.m. OK C++17 (GCC 7-32) TESTS 27 171 102400
351111982 ulzschtrankhof E Nov. 29, 2025, 4:42 a.m. OK C++17 (GCC 7-32) TESTS 27 171 2150400
351061478 ryomenSukuna1 E Nov. 28, 2025, 4:32 p.m. OK C++17 (GCC 7-32) TESTS 27 186 102400
351062476 VISSOL1 E Nov. 28, 2025, 4:34 p.m. OK C++17 (GCC 7-32) TESTS 27 186 2150400
351052582 AC_Quan E Nov. 28, 2025, 4:09 p.m. OK C++17 (GCC 7-32) TESTS 27 186 2662400
351118508 ClarkW E Nov. 29, 2025, 6 a.m. OK C++17 (GCC 7-32) TESTS 27 186 3686400
351055201 Weiqu0852 E Nov. 28, 2025, 4:16 p.m. OK C++20 (GCC 13-64) TESTS 27 77 8192000
351061139 NaraFluorine E Nov. 28, 2025, 4:31 p.m. OK C++20 (GCC 13-64) TESTS 27 77 9318400
351101777 antguz E Nov. 29, 2025, 12:58 a.m. OK C++20 (GCC 13-64) TESTS 27 125 6041600
351071836 Khalid_Kamal_ E Nov. 28, 2025, 5:41 p.m. OK C++20 (GCC 13-64) TESTS 27 140 0
351113674 huanxiel E Nov. 29, 2025, 5:10 a.m. OK C++20 (GCC 13-64) TESTS 27 140 0
351097636 fake_id_123 E Nov. 28, 2025, 10:43 p.m. OK C++20 (GCC 13-64) TESTS 27 140 0
351078213 Arpia E Nov. 28, 2025, 6:31 p.m. OK C++20 (GCC 13-64) TESTS 27 140 0
351062653 joaozao E Nov. 28, 2025, 4:34 p.m. OK C++20 (GCC 13-64) TESTS 27 140 0
351098574 YuukiS E Nov. 28, 2025, 11:06 p.m. OK C++20 (GCC 13-64) TESTS 27 140 102400
351101207 oranger_20 E Nov. 29, 2025, 12:34 a.m. OK C++20 (GCC 13-64) TESTS 27 140 102400
351076133 zwezdinv E Nov. 28, 2025, 6:16 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 62 14336000
351052503 TMQuitten E Nov. 28, 2025, 4:09 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 93 307200
351109716 TranVinhHuy2010 E Nov. 29, 2025, 4:02 a.m. OK C++23 (GCC 14-64, msys2) TESTS 27 125 6041600
351119475 sanketag23 E Nov. 29, 2025, 6:09 a.m. OK C++23 (GCC 14-64, msys2) TESTS 27 140 0
351089100 TheSupremacy55 E Nov. 28, 2025, 8:18 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 140 0
351073072 123hh2_fan E Nov. 28, 2025, 5:52 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 140 102400
351074293 vaibhavvvv_AIT E Nov. 28, 2025, 6:02 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 140 102400
351074127 Nanako7_ix E Nov. 28, 2025, 6 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 140 102400
351073262 zwezdinv E Nov. 28, 2025, 5:53 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 140 102400
351063607 archer_233 E Nov. 28, 2025, 4:40 p.m. OK C++23 (GCC 14-64, msys2) TESTS 27 140 102400
351055765 hollow_knight_25 E Nov. 28, 2025, 4:17 p.m. OK C# 8 TESTS 27 218 6963200
351059820 RockStar132 E Nov. 28, 2025, 4:28 p.m. OK Java 21 TESTS 27 312 1638400
351059102 Prathamesh_patil_123 E Nov. 28, 2025, 4:26 p.m. OK Java 21 TESTS 27 328 921600
351098459 adarshsingh6534 E Nov. 28, 2025, 11:03 p.m. OK Java 21 TESTS 27 406 921600
351056818 AmazingKeymaster E Nov. 28, 2025, 4:20 p.m. OK Java 21 TESTS 27 437 716800
351060549 nabina1395 E Nov. 28, 2025, 4:30 p.m. OK Java 21 TESTS 27 437 1536000
351051652 ansh07017 E Nov. 28, 2025, 4:07 p.m. OK Java 21 TESTS 27 452 819200
351060912 adii3108 E Nov. 28, 2025, 4:31 p.m. OK Java 21 TESTS 27 468 614400
351059788 Samyajit125 E Nov. 28, 2025, 4:28 p.m. OK Java 21 TESTS 27 468 39116800
351081877 vineetiwari E Nov. 28, 2025, 7:05 p.m. OK Java 21 TESTS 27 562 1024000
351057266 sarthaKKharKa_18 E Nov. 28, 2025, 4:21 p.m. OK Java 21 TESTS 27 718 20992000
351049859 SubheshVedam E Nov. 28, 2025, 4:03 p.m. OK Java 8 TESTS 27 202 0
351060058 Ado90 E Nov. 28, 2025, 4:29 p.m. OK Java 8 TESTS 27 296 0
351053752 yashbansal99 E Nov. 28, 2025, 4:12 p.m. OK Java 8 TESTS 27 421 34406400
351053567 vanishamittal1409 E Nov. 28, 2025, 4:12 p.m. OK Java 8 TESTS 27 937 0
351055924 blu_bird E Nov. 28, 2025, 4:18 p.m. OK Kotlin 1.9 TESTS 27 311 0
351058562 arvindf232 E Nov. 28, 2025, 4:25 p.m. OK Kotlin 2.2 TESTS 27 296 0
351052487 seizure E Nov. 28, 2025, 4:09 p.m. OK PyPy 3 TESTS 27 1546 13721600
351057160 WaffleMan E Nov. 28, 2025, 4:21 p.m. OK PyPy 3 TESTS 27 1561 13721600
351059847 Balerion_Black_Dread E Nov. 28, 2025, 4:28 p.m. OK PyPy 3-64 TESTS 27 202 10547200
351054374 js7777 E Nov. 28, 2025, 4:14 p.m. OK PyPy 3-64 TESTS 27 218 9728000
351058786 Euler06 E Nov. 28, 2025, 4:25 p.m. OK PyPy 3-64 TESTS 27 249 10547200
351060690 leduchuy E Nov. 28, 2025, 4:30 p.m. OK PyPy 3-64 TESTS 27 249 11059200
351101936 RobinFromTheHood E Nov. 29, 2025, 1:03 a.m. OK PyPy 3-64 TESTS 27 249 13107200
351067176 krism E Nov. 28, 2025, 5:04 p.m. OK PyPy 3-64 TESTS 27 249 19148800
351089212 kv4yne E Nov. 28, 2025, 8:19 p.m. OK PyPy 3-64 TESTS 27 249 49868800
351062132 SCP-3325 E Nov. 28, 2025, 4:33 p.m. OK PyPy 3-64 TESTS 27 249 54374400
351060517 yahya04 E Nov. 28, 2025, 4:30 p.m. OK PyPy 3-64 TESTS 27 249 54374400
351053708 alibeklovekavkaz E Nov. 28, 2025, 4:12 p.m. OK PyPy 3-64 TESTS 27 249 63590400
351051249 ZUKLI0D E Nov. 28, 2025, 4:06 p.m. OK Python 3 TESTS 27 405 58982400
351060619 wyy001 E Nov. 28, 2025, 4:30 p.m. OK Python 3 TESTS 27 515 104448000
351062692 qwq11451 E Nov. 28, 2025, 4:34 p.m. OK Python 3 TESTS 27 578 36659200
351049404 Nurmyrat E Nov. 28, 2025, 4:02 p.m. OK Python 3 TESTS 27 796 56217600
351075709 safiimran205 E Nov. 28, 2025, 6:13 p.m. OK Python 3 TESTS 27 921 36659200
351057973 amirhosseinkhalili901 E Nov. 28, 2025, 4:23 p.m. OK Python 3 TESTS 27 1921 91136000
351052268 atofujiosukai E Nov. 28, 2025, 4:09 p.m. OK Rust 2021 TESTS 27 374 53145600
351057328 javidbid E Nov. 28, 2025, 4:22 p.m. OK Rust 2024 TESTS 27 92 12697600

remove filters

Back to search problems