Educational Codeforces Round 154 (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
1861 Educational Codeforces Round 154 (Rated for Div. 2) FINISHED False 7200 43687463 Aug. 31, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10476 ) C Queries for the Array PROGRAMMING data structures dfs and similar implementation strings trees

B'Monocarp had an array a consisting of integers. Initially, this array was empty. Monocarp performed three types of queries to this array: You are given a sequence s of q characters 0, 1, + and/or -. These are the characters that were written out by Monocarp, given in the exact order he wrote them out. You have to check if this sequence is consistent, i. xe2 x80 x89e. it was possible for Monocarp to perform the queries so that the sequence of characters he wrote out is exactly s . The first line of the input contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of one line containing the string s ( 1 <= |s| <= 2 cdot 10^5 ). This string consists of characters 0, 1, + and/or -. This is the sequence of characters written by Monocarp, in the order he wrote them. Additional constraints on the input: For each test case, print YES if it was possible for Monocarp to perform the queries so that the sequence of characters he wrote is exactly s . Otherwise, print NO. You can print each letter in any register. In the first test case, Monocarp could perform the following sequence of queries: In the fifth test case, Monocarp could perform the following sequence of queries: In all other test cases of the example test, it is impossible for Monocarp to write the sequence s when performing the queries according to the statement. '...

Tutorials

Educational Codeforces Round 154 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
221366943 herocharge C Aug. 31, 2023, 5:48 p.m. OK GNU C11 TESTS 26 46 1843200
221391890 JKF_ZZ C Sept. 1, 2023, 1:03 a.m. OK GNU C++14 TESTS 26 15 204800
221391874 onlycre C Sept. 1, 2023, 1:02 a.m. OK GNU C++14 TESTS 26 15 204800
221396469 leoair C Sept. 1, 2023, 2:43 a.m. OK GNU C++14 TESTS 26 15 204800
221391917 JKF_ZZ C Sept. 1, 2023, 1:03 a.m. OK GNU C++14 TESTS 26 15 204800
221392000 Aurora_Wind C Sept. 1, 2023, 1:06 a.m. OK GNU C++14 TESTS 26 15 204800
221394484 Leonador C Sept. 1, 2023, 2:03 a.m. OK GNU C++14 TESTS 26 15 512000
221394299 mzycNATO C Sept. 1, 2023, 1:58 a.m. OK GNU C++14 TESTS 26 15 512000
221389050 brianzjk264 C Aug. 31, 2023, 11:48 p.m. OK GNU C++14 TESTS 26 15 512000
221407481 wumuuu C Sept. 1, 2023, 5:57 a.m. OK GNU C++14 TESTS 26 15 512000
221397010 ravellavisesh C Sept. 1, 2023, 2:54 a.m. OK GNU C++14 TESTS 26 15 512000
221361982 zeemanz C Aug. 31, 2023, 5:09 p.m. OK GNU C++17 TESTS 26 15 204800
221358527 zhoujiu C Aug. 31, 2023, 4:48 p.m. OK GNU C++17 TESTS 26 15 204800
221356667 Andrei_ierdnA C Aug. 31, 2023, 4:38 p.m. OK GNU C++17 TESTS 26 15 204800
221407500 qazhym C Sept. 1, 2023, 5:58 a.m. OK GNU C++17 TESTS 26 15 204800
221363396 65537 C Aug. 31, 2023, 5:18 p.m. OK GNU C++17 TESTS 26 15 409600
221407220 harshit.30 C Sept. 1, 2023, 5:54 a.m. OK GNU C++17 TESTS 26 15 512000
221406954 md_afique C Sept. 1, 2023, 5:50 a.m. OK GNU C++17 TESTS 26 15 512000
221406814 writingdog C Sept. 1, 2023, 5:49 a.m. OK GNU C++17 TESTS 26 15 512000
221403698 TCS_Bhediya C Sept. 1, 2023, 4:52 a.m. OK GNU C++17 TESTS 26 15 512000
221403082 Akil_Newaz_Chy C Sept. 1, 2023, 4:42 a.m. OK GNU C++17 TESTS 26 15 512000
221392785 yyyyyd C Sept. 1, 2023, 1:23 a.m. OK GNU C++17 (64) TESTS 26 15 512000
221407834 200389 C Sept. 1, 2023, 6:02 a.m. OK GNU C++17 (64) TESTS 26 15 512000
221402979 a2513472504 C Sept. 1, 2023, 4:41 a.m. OK GNU C++17 (64) TESTS 26 15 512000
221396180 Once_I_Liked_AGirl C Sept. 1, 2023, 2:37 a.m. OK GNU C++17 (64) TESTS 26 15 512000
221396163 wei138 C Sept. 1, 2023, 2:37 a.m. OK GNU C++17 (64) TESTS 26 15 512000
221392286 LiMit3 C Sept. 1, 2023, 1:12 a.m. OK GNU C++17 (64) TESTS 26 15 512000
221385893 jahid_hridoy C Aug. 31, 2023, 10:13 p.m. OK GNU C++17 (64) TESTS 26 15 512000
221385848 jahid_hridoy C Aug. 31, 2023, 10:12 p.m. OK GNU C++17 (64) TESTS 26 15 512000
221364449 hamath C Aug. 31, 2023, 5:27 p.m. OK GNU C++17 (64) TESTS 26 15 512000
221361785 manishjha91 C Aug. 31, 2023, 5:07 p.m. OK GNU C++17 (64) TESTS 26 15 512000
221362643 BlankYang C Aug. 31, 2023, 5:13 p.m. OK GNU C++20 (64) TESTS 26 0 512000
221358871 Edlue C Aug. 31, 2023, 4:49 p.m. OK GNU C++20 (64) TESTS 26 0 512000
221357074 sxhlsya C Aug. 31, 2023, 4:40 p.m. OK GNU C++20 (64) TESTS 26 0 512000
221354355 IGlazkovI C Aug. 31, 2023, 4:33 p.m. OK GNU C++20 (64) TESTS 26 0 512000
221365620 isolated_island C Aug. 31, 2023, 5:36 p.m. OK GNU C++20 (64) TESTS 26 0 512000
221361485 adiyer C Aug. 31, 2023, 5:05 p.m. OK GNU C++20 (64) TESTS 26 0 1228800
221393732 Srbmaury C Sept. 1, 2023, 1:45 a.m. OK GNU C++20 (64) TESTS 26 0 1433600
221406842 ami_2025 C Sept. 1, 2023, 5:49 a.m. OK GNU C++20 (64) TESTS 26 0 4505600
221391841 JKF_ZZ C Sept. 1, 2023, 1:02 a.m. OK GNU C++20 (64) TESTS 26 15 204800
221407091 bkifhr9 C Sept. 1, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 26 15 512000
221355767 botayhard C Aug. 31, 2023, 4:36 p.m. OK Go TESTS 26 15 6758400
221353169 ggghg C Aug. 31, 2023, 4:31 p.m. OK Java 11 TESTS 26 187 0
221372146 themadknight45 C Aug. 31, 2023, 6:39 p.m. OK Java 11 TESTS 26 202 0
221373788 themadknight45 C Aug. 31, 2023, 6:56 p.m. OK Java 11 TESTS 26 202 0
221371121 themadknight45 C Aug. 31, 2023, 6:28 p.m. OK Java 11 TESTS 26 218 0
221361692 gauravvv2204 C Aug. 31, 2023, 5:07 p.m. OK Java 11 TESTS 26 233 0
221358148 Okeah-Atopos C Aug. 31, 2023, 4:45 p.m. OK Java 11 TESTS 26 249 0
221358116 aryang22 C Aug. 31, 2023, 4:45 p.m. OK Java 11 TESTS 26 249 0
221351651 darpan_12 C Aug. 31, 2023, 4:29 p.m. OK Java 11 TESTS 26 311 0
221353468 verma.shivam2605 C Aug. 31, 2023, 4:32 p.m. OK Java 11 TESTS 26 327 0
221371286 IMP0STER C Aug. 31, 2023, 6:29 p.m. OK Java 11 TESTS 26 343 32051200
221383024 _ryan18_ C Aug. 31, 2023, 9:13 p.m. OK Java 17 TESTS 26 187 204800
221352915 sid234890 C Aug. 31, 2023, 4:31 p.m. OK Java 17 TESTS 26 202 409600
221383105 ilovenandini C Aug. 31, 2023, 9:15 p.m. OK Java 17 TESTS 26 233 614400
221351847 American_Eagle C Aug. 31, 2023, 4:29 p.m. OK Java 17 TESTS 26 248 307200
221355100 Utk__03 C Aug. 31, 2023, 4:34 p.m. OK Java 17 TESTS 26 249 512000
221374556 GaleStarr C Aug. 31, 2023, 7:05 p.m. OK Java 17 TESTS 26 295 921600
221370303 AyushVardhan C Aug. 31, 2023, 6:19 p.m. OK Java 17 TESTS 26 311 716800
221384057 osama.bmaq C Aug. 31, 2023, 9:34 p.m. OK Java 8 TESTS 26 109 0
221393909 Java_Programmer C Sept. 1, 2023, 1:50 a.m. OK Java 8 TESTS 26 124 0
221375573 Sumitsingh7 C Aug. 31, 2023, 7:18 p.m. OK Java 8 TESTS 26 124 5836800
221399476 mohamedhassan_c C Sept. 1, 2023, 3:38 a.m. OK Java 8 TESTS 26 155 5939200
221406817 depurador_ik C Sept. 1, 2023, 5:49 a.m. OK Java 8 TESTS 26 170 0
221376686 tatianyi C Aug. 31, 2023, 7:32 p.m. OK MS C++ 2017 TESTS 26 15 614400
221354590 vajaba C Aug. 31, 2023, 4:33 p.m. OK MS C++ 2017 TESTS 26 15 614400
221359037 Mo-Ehab C Aug. 31, 2023, 4:50 p.m. OK Node.js TESTS 26 62 2355200
221370787 SlayerS C Aug. 31, 2023, 6:24 p.m. OK Node.js TESTS 26 155 3072000
221367010 conqueror_of_womais C Aug. 31, 2023, 5:48 p.m. OK PyPy 3 TESTS 26 171 6963200
221399712 lionkingchuchu C Sept. 1, 2023, 3:43 a.m. OK PyPy 3 TESTS 26 202 7782400
221354736 andy0liang C Aug. 31, 2023, 4:33 p.m. OK PyPy 3 TESTS 26 249 9830400
221354924 shubhamkumar1001 C Aug. 31, 2023, 4:34 p.m. OK PyPy 3 TESTS 26 342 9113600
221355565 anand.manan29 C Aug. 31, 2023, 4:34 p.m. OK PyPy 3 TESTS 26 342 9625600
221351962 HumourouSaint C Aug. 31, 2023, 4:29 p.m. OK PyPy 3 TESTS 26 358 9830400
221361428 HumourouSaint C Aug. 31, 2023, 5:05 p.m. OK PyPy 3 TESTS 26 389 9830400
221396118 SoleProprietor C Sept. 1, 2023, 2:36 a.m. OK PyPy 3-64 TESTS 26 77 4812800
221362199 Tinky1224 C Aug. 31, 2023, 5:10 p.m. OK PyPy 3-64 TESTS 26 124 8704000
221401574 InHng C Sept. 1, 2023, 4:17 a.m. OK PyPy 3-64 TESTS 26 124 9830400
221400073 InHng C Sept. 1, 2023, 3:50 a.m. OK PyPy 3-64 TESTS 26 124 9830400
221362874 Axeley C Aug. 31, 2023, 5:15 p.m. OK PyPy 3-64 TESTS 26 139 9625600
221358924 Non-origination C Aug. 31, 2023, 4:50 p.m. OK PyPy 3-64 TESTS 26 139 9728000
221387493 gardengnome C Aug. 31, 2023, 10:57 p.m. OK PyPy 3-64 TESTS 26 139 9932800
221363041 rmr C Aug. 31, 2023, 5:16 p.m. OK PyPy 3-64 TESTS 26 140 11673600
221386347 sushmanth.dampur8780 C Aug. 31, 2023, 10:24 p.m. OK PyPy 3-64 TESTS 26 155 9728000
221358741 Non-origination C Aug. 31, 2023, 4:49 p.m. OK PyPy 3-64 TESTS 26 155 9830400
221365064 AyuAnchor C Aug. 31, 2023, 5:31 p.m. OK Python 3 TESTS 26 78 4096000
221383030 anastasis01 C Aug. 31, 2023, 9:13 p.m. OK Python 3 TESTS 26 93 409600
221388778 rock_lock C Aug. 31, 2023, 11:40 p.m. OK Python 3 TESTS 26 93 512000
221353913 khongvaodcLQD2023 C Aug. 31, 2023, 4:32 p.m. OK Python 3 TESTS 26 93 2048000
221363164 AyuAnchor C Aug. 31, 2023, 5:17 p.m. OK Python 3 TESTS 26 93 4096000
221353496 Hurricane0017 C Aug. 31, 2023, 4:32 p.m. OK Python 3 TESTS 26 108 409600
221376435 Gau.Sh. C Aug. 31, 2023, 7:29 p.m. OK Python 3 TESTS 26 108 512000
221361390 GesusM C Aug. 31, 2023, 5:05 p.m. OK Python 3 TESTS 26 108 512000
221352986 2100069053eee C Aug. 31, 2023, 4:31 p.m. OK Python 3 TESTS 26 108 2048000
221374742 RadaRk C Aug. 31, 2023, 7:08 p.m. OK Python 3 TESTS 26 108 12185600
221399245 nirlep5252 C Sept. 1, 2023, 3:34 a.m. OK Rust 2021 TESTS 26 108 819200
221384652 4xel C Aug. 31, 2023, 9:47 p.m. OK Rust 2021 TESTS 26 109 819200
221375670 zys111 C Aug. 31, 2023, 7:19 p.m. OK Rust 2021 TESTS 26 109 819200

remove filters

Back to search problems