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
( 21419 ) B Deck of Cards PROGRAMMING greedy implementation

Monocarp has a deck of cards numbered from (1) to (n). Initially, the cards are arranged from smallest to largest, with (1) on top and (n) at the bottom. Monocarp performed (k) actions on the deck. Each action was one of three types: remove the top card; remove the bottom card; remove either the top or bottom card. Your task is to determine the fate of each card: whether it remains in the deck, has been removed, or might be both. The first line contains a single integer (t) ((1 \le t \le 10^4)) — the number of test cases. The first line of each test case contains two integers (n) and (k) ((1 \le k \le n \le 2 \cdot 10^5)). The second line contains a string (s) of length (k), consisting of characters 0 , 1 , and/or {2}. This string describes Monocarp's actions. If the (i)-th character is 0 , Monocarp removes the top card on the (i)-th action. If it's 1 , he removes the bottom card. If it's 2 , either the top or bottom card can be removed. Additional constraint on the input: the sum of (n) over all test cases doesn't exceed (2 \cdot 10^5). For each test case, print a string consisting of (n) characters. The (i)-th character should be + (plus sign) if the (i)-th card is still in the deck, - (minus sign) if it has been removed, or ? (question mark) if its state is unknown.

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
342358647 doola B Oct. 6, 2025, 8:40 p.m. OK C# 10 TESTS 10 296 2764800
342519122 ksandr1v B Oct. 8, 2025, 1:03 a.m. OK C# 13 TESTS 10 93 2764800
342523741 tej11 B Oct. 8, 2025, 2:30 a.m. OK C# 13 TESTS 10 124 3072000
342355005 mahmudur9 B Oct. 6, 2025, 7:56 p.m. OK C# 13 TESTS 10 264 3072000
342529863 shreyasshinde600 B Oct. 8, 2025, 4:06 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
342528911 code72 B Oct. 8, 2025, 3:53 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
342527249 jhamadhav B Oct. 8, 2025, 3:26 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
342526270 ZzzZzzZzzZzzwh B Oct. 8, 2025, 3:11 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
342518848 georginio B Oct. 8, 2025, 12:56 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
342517801 AL-Yassin-105 B Oct. 8, 2025, 12:31 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
342507890 krishqw B Oct. 7, 2025, 8:36 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
342536899 its_just_me_2 B Oct. 8, 2025, 5:31 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
342536814 VinayGupta28 B Oct. 8, 2025, 5:30 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
342535242 prateekjain B Oct. 8, 2025, 5:14 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
342527829 mrfox7028 B Oct. 8, 2025, 3:37 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
342535063 Strat42 B Oct. 8, 2025, 5:12 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
342534443 -K_I_R_A- B Oct. 8, 2025, 5:05 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
342532803 Sarvesh0955 B Oct. 8, 2025, 4:45 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
342527766 James_the_devotee B Oct. 8, 2025, 3:36 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
342526480 Brian_Griffin B Oct. 8, 2025, 3:14 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
342526016 ved_226 B Oct. 8, 2025, 3:06 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
342523103 stubborn_coder_ B Oct. 8, 2025, 2:19 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
342522717 Greedster B Oct. 8, 2025, 2:12 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
342521693 01hcaijiahao B Oct. 8, 2025, 1:54 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
342530077 higgsboson1710 B Oct. 8, 2025, 4:09 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
342483673 abhishek_bisht B Oct. 7, 2025, 5:20 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 31 0
342535106 aditya_up62 B Oct. 8, 2025, 5:13 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
342533822 umang_does_cp B Oct. 8, 2025, 4:58 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
342533760 gurkiratcode B Oct. 8, 2025, 4:57 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
342532024 riteshxyzbbsr B Oct. 8, 2025, 4:36 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
342531069 ADAR2002 B Oct. 8, 2025, 4:22 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
342527740 StandNotAlone B Oct. 8, 2025, 3:35 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
342527286 yvbf B Oct. 8, 2025, 3:27 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
342525645 Nasif_Iqbal B Oct. 8, 2025, 3 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
342350695 Mysni B Oct. 6, 2025, 7:12 p.m. OK GNU C11 TESTS 10 796 409600
342455657 muntahamun B Oct. 7, 2025, 2:37 p.m. OK GNU C11 TESTS 10 796 409600
342338793 Minecboi B Oct. 6, 2025, 5:44 p.m. OK GNU C11 TESTS 10 827 1331200
342343352 Ajeet_choyal B Oct. 6, 2025, 6:15 p.m. OK GNU C11 TESTS 10 843 1024000
342339027 Minecboi B Oct. 6, 2025, 5:46 p.m. OK GNU C11 TESTS 10 843 1331200
342426204 scriptnsam B Oct. 7, 2025, 11:08 a.m. OK Go TESTS 10 62 1945600
342451951 owi8270 B Oct. 7, 2025, 2:18 p.m. OK Go TESTS 10 77 2048000
342480671 AwaneeshSoni B Oct. 7, 2025, 5 p.m. OK Java 21 TESTS 10 234 204800
342516658 MAFIA29 B Oct. 8, 2025, 12:05 a.m. OK Java 21 TESTS 10 234 307200
342504064 Ahmed_Amine B Oct. 7, 2025, 7:50 p.m. OK Java 21 TESTS 10 234 921600
342383145 kartik__sethi B Oct. 7, 2025, 4:35 a.m. OK Java 21 TESTS 10 234 1843200
342489342 Aaditysa01sehgal B Oct. 7, 2025, 5:56 p.m. OK Java 21 TESTS 10 249 614400
342361103 JohnCena_IIT_ROPAR B Oct. 6, 2025, 9:18 p.m. OK Java 21 TESTS 10 249 1024000
342458382 RajatShukla B Oct. 7, 2025, 2:52 p.m. OK Java 21 TESTS 10 249 1331200
342495008 Saksham_3110 B Oct. 7, 2025, 6:34 p.m. OK Java 21 TESTS 10 264 614400
342353965 vineetiwari B Oct. 6, 2025, 7:44 p.m. OK Java 21 TESTS 10 264 1228800
342386148 NpHardcore_05 B Oct. 7, 2025, 5:11 a.m. OK Java 21 TESTS 10 264 1740800
342373909 suntansoker B Oct. 7, 2025, 2:18 a.m. OK Java 8 TESTS 10 155 0
342383092 adibhai0845R B Oct. 7, 2025, 4:34 a.m. OK Java 8 TESTS 10 155 0
342352342 yashvardhan3 B Oct. 6, 2025, 7:27 p.m. OK Java 8 TESTS 10 156 0
342420824 lupunish B Oct. 7, 2025, 10:27 a.m. OK Java 8 TESTS 10 171 0
342487577 DevDiva B Oct. 7, 2025, 5:45 p.m. OK Java 8 TESTS 10 187 0
342412481 NE0b01 B Oct. 7, 2025, 9:18 a.m. OK Java 8 TESTS 10 202 0
342484403 amre_8800 B Oct. 7, 2025, 5:24 p.m. OK Java 8 TESTS 10 233 0
342500895 pranav_singh B Oct. 7, 2025, 7:20 p.m. OK Java 8 TESTS 10 234 0
342367275 Ishaan__23 B Oct. 7, 2025, 12:02 a.m. OK Java 8 TESTS 10 249 0
342477230 talamarlasrija B Oct. 7, 2025, 4:39 p.m. OK Java 8 TESTS 10 452 0
342486327 pank_su B Oct. 7, 2025, 5:37 p.m. OK Kotlin 2.2 TESTS 10 202 204800
342347915 dglima B Oct. 6, 2025, 6:48 p.m. OK Node.js TESTS 10 296 20787200
342372282 andrewliu10523 B Oct. 7, 2025, 1:49 a.m. OK PyPy 3 TESTS 10 311 9830400
342487490 Mandeep234 B Oct. 7, 2025, 5:44 p.m. OK PyPy 3 TESTS 10 343 8089600
342438255 Biggaypig B Oct. 7, 2025, 12:43 p.m. OK PyPy 3 TESTS 10 343 10035200
342421580 Itachi42O B Oct. 7, 2025, 10:32 a.m. OK PyPy 3 TESTS 10 374 7987200
342528580 radoslav11 B Oct. 8, 2025, 3:48 a.m. OK PyPy 3 TESTS 10 374 8499200
342518609 kalebesouza.cc B Oct. 8, 2025, 12:50 a.m. OK PyPy 3 TESTS 10 374 8908800
342379188 klu2300080337 B Oct. 7, 2025, 3:39 a.m. OK PyPy 3 TESTS 10 437 9011200
342503962 gardengnome B Oct. 7, 2025, 7:49 p.m. OK PyPy 3-64 TESTS 10 109 4812800
342374202 kamio-misuzu B Oct. 7, 2025, 2:23 a.m. OK PyPy 3-64 TESTS 10 139 5939200
342359268 minuki646 B Oct. 6, 2025, 8:49 p.m. OK PyPy 3-64 TESTS 10 140 5529600
342358790 kazumaa16 B Oct. 6, 2025, 8:42 p.m. OK PyPy 3-64 TESTS 10 140 5734400
342353223 yoichii B Oct. 6, 2025, 7:36 p.m. OK PyPy 3-64 TESTS 10 140 6246400
342404268 shivamcodesnow B Oct. 7, 2025, 8:12 a.m. OK PyPy 3-64 TESTS 10 140 7884800
342373192 Conqurer_Abdullah B Oct. 7, 2025, 2:05 a.m. OK PyPy 3-64 TESTS 10 140 15769600
342338647 qs-1 B Oct. 6, 2025, 5:43 p.m. OK PyPy 3-64 TESTS 10 155 4608000
342379843 callmeabhi B Oct. 7, 2025, 3:48 a.m. OK PyPy 3-64 TESTS 10 155 5734400
342423193 Polynomu B Oct. 7, 2025, 10:45 a.m. OK PyPy 3-64 TESTS 10 155 7372800
342474373 Shivam_Chagotra B Oct. 7, 2025, 4:22 p.m. OK Python 3 TESTS 10 93 5836800
342502921 RisingStar_01 B Oct. 7, 2025, 7:39 p.m. OK Python 3 TESTS 10 108 921600
342461942 hungeazy B Oct. 7, 2025, 3:11 p.m. OK Python 3 TESTS 10 108 1024000
342509685 raspavel B Oct. 7, 2025, 9:03 p.m. OK Python 3 TESTS 10 109 921600
342370832 arifulh145 B Oct. 7, 2025, 1:23 a.m. OK Python 3 TESTS 10 109 2457600
342403706 Aquib_is_coder B Oct. 7, 2025, 8:07 a.m. OK Python 3 TESTS 10 109 4096000
342378558 eugalt B Oct. 7, 2025, 3:30 a.m. OK Python 3 TESTS 10 124 614400
342470211 999Wfan B Oct. 7, 2025, 3:58 p.m. OK Python 3 TESTS 10 124 921600
342349747 gogsculpts B Oct. 6, 2025, 7:03 p.m. OK Python 3 TESTS 10 124 2355200
342405418 dipak12.11 B Oct. 7, 2025, 8:22 a.m. OK Python 3 TESTS 10 139 921600
342435359 spookywooky B Oct. 7, 2025, 12:18 p.m. OK Rust 2024 TESTS 10 77 0
342385096 silicalet B Oct. 7, 2025, 4:59 a.m. OK Rust 2024 TESTS 10 77 0
342360534 Singu_Larity B Oct. 6, 2025, 9:08 p.m. OK Rust 2024 TESTS 10 77 102400

remove filters

Back to search problems