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 |
---|---|---|---|---|---|---|
1469 | Educational Codeforces Round 101 (Rated for Div. 2) | FINISHED | False | 7200 | 128186711 | Dec. 28, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 27869 ) | A | Regular Bracket Sequence | PROGRAMMING | constructive algorithms greedy |
B'A bracket sequence is called regular if it is possible to obtain correct arithmetic expression by inserting characters + and 1 into this sequence. For example, sequences (())(), () and (()(())) are regular, while )(, (() and (()))( are not. Let 's call a regular bracket sequence "RBS". You are given a sequence s of n characters (, ), and/or ?. There is exactly one character ( and exactly one character ) in this sequence. You have to replace every character ? with either ) or ( (different characters ? can be replaced with different brackets). You cannot reorder the characters, remove them, insert other characters, and each ? must be replaced. Determine if it is possible to obtain an RBS after these replacements. The first line contains one integer t ( 1 <= t <= 1000 ) -- the number of test cases. Each test case consists of one line containing s ( 2 <= |s| <= 100 ) -- a sequence of characters (, ), and/or ?. There is exactly one character ( and exactly one character ) in this sequence. For each test case, print YES if it is possible to obtain a regular bracket sequence, or NO otherwise}. You may print each letter in any case (for example, YES, Yes, yes, yEs will all be recognized as positive answer). In the first test case, the sequence is already an RBS. In the third test case, you can obtain an RBS as follows: ()() or (()). In the fourth test case, you can obtain an RBS as follows: ()(). '... |
Educational Codeforces Round 101 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
102649106 | Chaconne | A | Dec. 29, 2020, 12:31 a.m. | OK | Clang++17 Diagnostics | TESTS | 7 | 77 | 1024000 | ||
102624793 | sngkhiem | A | Dec. 28, 2020, 4:43 p.m. | OK | FPC | TESTS | 3 | 31 | 102400 | ||
102622860 | polneni_prashanth | A | Dec. 28, 2020, 4:34 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
102653881 | 9334radha | A | Dec. 29, 2020, 3:39 a.m. | OK | GNU C11 | TESTS | 7 | 15 | 0 | ||
102657334 | Lunasama | A | Dec. 29, 2020, 5:05 a.m. | OK | GNU C11 | TESTS | 7 | 15 | 0 | ||
102621881 | _Akhil_3366 | A | Dec. 28, 2020, 4:33 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
102623602 | Aditi.02 | A | Dec. 28, 2020, 4:38 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
102626699 | topol | A | Dec. 28, 2020, 4:54 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
102630514 | namanbhatia11111 | A | Dec. 28, 2020, 5:28 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | ||
102641998 | Samadeol | A | Dec. 28, 2020, 8:23 p.m. | OK | GNU C11 | TESTS | 7 | 15 | 0 | ||
102635561 | varshita2003 | A | Dec. 28, 2020, 6:32 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 102400 | ||
102652650 | gxlois | A | Dec. 29, 2020, 3:01 a.m. | OK | GNU C11 | TESTS | 7 | 30 | 0 | ||
102629396 | UVER | A | Dec. 28, 2020, 5:16 p.m. | OK | GNU C++11 | TESTS | 3 | 0 | 0 | ||
102652377 | d_a_d_d_y | A | Dec. 29, 2020, 2:51 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | ||
102650493 | lyyyyy | A | Dec. 29, 2020, 1:33 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | ||
102648492 | william555 | A | Dec. 29, 2020, 12:03 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | ||
102641899 | paras | A | Dec. 28, 2020, 8:21 p.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | ||
102656717 | Datguyprasham | A | Dec. 29, 2020, 4:52 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | ||
102654761 | 03_01_00 | A | Dec. 29, 2020, 4:04 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | ||
102652863 | I_do_not_know | A | Dec. 29, 2020, 3:08 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | ||
102652458 | KiryaTWIX | A | Dec. 29, 2020, 2:54 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | ||
102650549 | 2020gangbazi | A | Dec. 29, 2020, 1:36 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | ||
102659672 | manujk | A | Dec. 29, 2020, 5:46 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | ||
102660184 | saprey420 | A | Dec. 29, 2020, 5:54 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | ||
102658422 | zhumazhenis | A | Dec. 29, 2020, 5:25 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | ||
102658272 | ratnesh_tiwari | A | Dec. 29, 2020, 5:22 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | ||
102656196 | aditya_x | A | Dec. 29, 2020, 4:42 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | ||
102648245 | Mr-Spy | A | Dec. 28, 2020, 11:50 p.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | ||
102642858 | Belalmoawad | A | Dec. 28, 2020, 8:43 p.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | ||
102640253 | terminator123 | A | Dec. 28, 2020, 7:49 p.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | ||
102639011 | ankitkr602 | A | Dec. 28, 2020, 7:26 p.m. | OK | GNU C++14 | TESTS | 3 | 15 | 0 | ||
102638189 | Abhay_raj1707 | A | Dec. 28, 2020, 7:12 p.m. | OK | GNU C++14 | TESTS | 3 | 15 | 0 | ||
102620297 | Vaidik_Patel_27 | A | Dec. 28, 2020, 4:30 p.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
102648395 | himv1998 | A | Dec. 28, 2020, 11:58 p.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | ||
102649429 | BetoSCL | A | Dec. 29, 2020, 12:45 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | ||
102649996 | caoash | A | Dec. 29, 2020, 1:10 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | ||
102653229 | naveen172 | A | Dec. 29, 2020, 3:20 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | ||
102653398 | kaa200102 | A | Dec. 29, 2020, 3:25 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | ||
102653863 | 18H51A05P8 | A | Dec. 29, 2020, 3:38 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | ||
102656300 | Yaman0110 | A | Dec. 29, 2020, 4:44 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | ||
102656421 | palsoumyadeep | A | Dec. 29, 2020, 4:47 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | ||
102657996 | giiro_ | A | Dec. 29, 2020, 5:18 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | ||
102621549 | r7665415553 | A | Dec. 28, 2020, 4:33 p.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
102647485 | HNO2 | A | Dec. 28, 2020, 11:14 p.m. | OK | GNU C++17 (64) | TESTS | 7 | 15 | 0 | ||
102659273 | nomad_heart | A | Dec. 29, 2020, 5:40 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 15 | 0 | ||
102659051 | adi2710 | A | Dec. 29, 2020, 5:36 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 15 | 0 | ||
102657827 | suraj429 | A | Dec. 29, 2020, 5:14 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 15 | 0 | ||
102656018 | dhiraj-01 | A | Dec. 29, 2020, 4:38 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 15 | 0 | ||
102654402 | agarwalaswastik | A | Dec. 29, 2020, 3:55 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 15 | 0 | ||
102649117 | Ehab_Fawzy | A | Dec. 29, 2020, 12:31 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 15 | 0 | ||
102649064 | Ehab_Fawzy | A | Dec. 29, 2020, 12:30 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 15 | 0 | ||
102647345 | Ameliorate | A | Dec. 28, 2020, 11:08 p.m. | OK | GNU C++17 (64) | TESTS | 7 | 15 | 0 | ||
102627603 | honey_ramgarhia | A | Dec. 28, 2020, 5 p.m. | OK | Go | TESTS | 3 | 30 | 0 | ||
102625792 | razdva36 | A | Dec. 28, 2020, 4:49 p.m. | OK | Go | TESTS | 3 | 46 | 0 | ||
102637994 | sarvjot_422002 | A | Dec. 28, 2020, 7:09 p.m. | OK | Java 11 | TESTS | 3 | 139 | 0 | ||
102646944 | Siddharth2020 | A | Dec. 28, 2020, 10:52 p.m. | OK | Java 11 | TESTS | 7 | 155 | 0 | ||
102628639 | Centelle | A | Dec. 28, 2020, 5:09 p.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | ||
102634453 | mr.arora | A | Dec. 28, 2020, 6:17 p.m. | OK | Java 11 | TESTS | 3 | 156 | 0 | ||
102620470 | adarsh_goku | A | Dec. 28, 2020, 4:31 p.m. | OK | Java 11 | TESTS | 3 | 156 | 0 | ||
102656612 | tusharjape007 | A | Dec. 29, 2020, 4:50 a.m. | OK | Java 11 | TESTS | 7 | 170 | 0 | ||
102650364 | abdelrahman-yousf | A | Dec. 29, 2020, 1:28 a.m. | OK | Java 11 | TESTS | 7 | 171 | 0 | ||
102658129 | sam_code | A | Dec. 29, 2020, 5:20 a.m. | OK | Java 11 | TESTS | 7 | 171 | 0 | ||
102652629 | Oopsimbad | A | Dec. 29, 2020, 3 a.m. | OK | Java 11 | TESTS | 7 | 171 | 0 | ||
102651232 | abdelrahman-yousf | A | Dec. 29, 2020, 2:06 a.m. | OK | Java 11 | TESTS | 7 | 171 | 0 | ||
102628902 | Pranay2516 | A | Dec. 28, 2020, 5:11 p.m. | OK | Java 8 | TESTS | 3 | 78 | 0 | ||
102653417 | O-infinity | A | Dec. 29, 2020, 3:26 a.m. | OK | Java 8 | TESTS | 7 | 93 | 0 | ||
102639285 | dmorolia | A | Dec. 28, 2020, 7:31 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
102636038 | noobmaster_619 | A | Dec. 28, 2020, 6:39 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
102641183 | xoszm | A | Dec. 28, 2020, 8:06 p.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | ||
102641078 | rdsaurabh97 | A | Dec. 28, 2020, 8:04 p.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | ||
102640743 | kbadrinath | A | Dec. 28, 2020, 7:58 p.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | ||
102652256 | MagentaCobra | A | Dec. 29, 2020, 2:46 a.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | ||
102648533 | MubtasimShahriar | A | Dec. 29, 2020, 12:05 a.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | ||
102647785 | qlf9 | A | Dec. 28, 2020, 11:28 p.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | ||
102655922 | kabden.a | A | Dec. 29, 2020, 4:36 a.m. | OK | JavaScript | TESTS | 7 | 31 | 0 | ||
102651122 | Spheniscine | A | Dec. 29, 2020, 2:01 a.m. | OK | Kotlin | TESTS | 7 | 124 | 0 | ||
102646674 | vanvector | A | Dec. 28, 2020, 10:40 p.m. | OK | Kotlin | TESTS | 7 | 124 | 0 | ||
102627081 | diekautz | A | Dec. 28, 2020, 4:57 p.m. | OK | Kotlin | TESTS | 3 | 124 | 204800 | ||
102647446 | catforce | A | Dec. 28, 2020, 11:12 p.m. | OK | Kotlin | TESTS | 7 | 139 | 0 | ||
102630752 | cmplx-xyttmt | A | Dec. 28, 2020, 5:31 p.m. | OK | Kotlin | TESTS | 3 | 140 | 0 | ||
102654155 | man.yasakov | A | Dec. 29, 2020, 3:48 a.m. | OK | Kotlin | TESTS | 7 | 140 | 0 | ||
102642003 | Uncle_Monkey | A | Dec. 28, 2020, 8:23 p.m. | OK | Kotlin | TESTS | 7 | 171 | 0 | ||
102653707 | chan10 | A | Dec. 29, 2020, 3:34 a.m. | OK | Kotlin | TESTS | 7 | 186 | 1945600 | ||
102653797 | chan10 | A | Dec. 29, 2020, 3:36 a.m. | OK | Kotlin | TESTS | 7 | 187 | 1945600 | ||
102634514 | Zzerro | A | Dec. 28, 2020, 6:18 p.m. | OK | MS C++ | TESTS | 3 | 15 | 0 | ||
102634757 | Zinnat_18 | A | Dec. 28, 2020, 6:21 p.m. | OK | MS C++ | TESTS | 3 | 15 | 0 | ||
102622528 | dustnehowl | A | Dec. 28, 2020, 4:34 p.m. | OK | MS C++ | TESTS | 3 | 15 | 0 | ||
102631694 | mragab | A | Dec. 28, 2020, 5:43 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
102655854 | sskhynix | A | Dec. 29, 2020, 4:34 a.m. | OK | MS C++ 2017 | TESTS | 7 | 15 | 0 | ||
102622257 | ehcgnahc | A | Dec. 28, 2020, 4:34 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
102628808 | RaVincent | A | Dec. 28, 2020, 5:10 p.m. | OK | MS C++ 2017 | TESTS | 3 | 30 | 0 | ||
102630818 | ustaritz | A | Dec. 28, 2020, 5:32 p.m. | OK | MS C++ 2017 | TESTS | 3 | 30 | 0 | ||
102630181 | -Tarantula | A | Dec. 28, 2020, 5:25 p.m. | OK | MS C++ 2017 | TESTS | 3 | 30 | 0 | ||
102628321 | karia | A | Dec. 28, 2020, 5:06 p.m. | OK | MS C++ 2017 | TESTS | 3 | 30 | 0 | ||
102658138 | jaynpatel222 | A | Dec. 29, 2020, 5:20 a.m. | OK | MS C++ 2017 | TESTS | 7 | 31 | 0 | ||
102658648 | jaynpatel222 | A | Dec. 29, 2020, 5:29 a.m. | OK | MS C++ 2017 | TESTS | 7 | 31 | 0 | ||
102649034 | EvgeniusASPX | A | Dec. 29, 2020, 12:29 a.m. | OK | MS C++ 2017 | TESTS | 7 | 31 | 0 | ||
102626027 | asutosh1998 | A | Dec. 28, 2020, 4:50 p.m. | OK | .NET Core C# | TESTS | 3 | 77 | 102400 | ||
102654045 | manojram11 | A | Dec. 29, 2020, 3:44 a.m. | OK | Node.js | TESTS | 7 | 62 | 1228800 | ||
102621236 | batyrbek.zhunis | A | Dec. 28, 2020, 4:32 p.m. | OK | PHP | TESTS | 3 | 31 | 0 | ||
102632496 | m1trand1r | A | Dec. 28, 2020, 5:52 p.m. | OK | PyPy 3 | TESTS | 3 | 140 | 1638400 | ||
102626449 | Scopula | A | Dec. 28, 2020, 4:53 p.m. | OK | PyPy 3 | TESTS | 3 | 140 | 2150400 | ||
102660232 | manish.17 | A | Dec. 29, 2020, 5:55 a.m. | OK | PyPy 3 | TESTS | 7 | 155 | 1433600 | ||
102623287 | thinkersloop | A | Dec. 28, 2020, 4:37 p.m. | OK | PyPy 3 | TESTS | 3 | 155 | 1843200 | ||
102625318 | DarkOverlord999 | A | Dec. 28, 2020, 4:46 p.m. | OK | PyPy 3 | TESTS | 3 | 155 | 1945600 | ||
102641562 | pk31299 | A | Dec. 28, 2020, 8:14 p.m. | OK | PyPy 3 | TESTS | 7 | 155 | 2048000 | ||
102627872 | jabhi_18 | A | Dec. 28, 2020, 5:03 p.m. | OK | PyPy 3 | TESTS | 3 | 155 | 2048000 | ||
102628369 | pmarecki | A | Dec. 28, 2020, 5:06 p.m. | OK | PyPy 3 | TESTS | 3 | 155 | 2252800 | ||
102656364 | akifpathan | A | Dec. 29, 2020, 4:45 a.m. | OK | PyPy 3 | TESTS | 7 | 155 | 2355200 | ||
102641410 | pk31299 | A | Dec. 28, 2020, 8:11 p.m. | OK | PyPy 3 | TESTS | 7 | 155 | 3174400 | ||
102637062 | _DontGiveUp_ | A | Dec. 28, 2020, 6:54 p.m. | OK | Python 2 | TESTS | 3 | 140 | 0 | ||
102627891 | mokshasood06 | A | Dec. 28, 2020, 5:03 p.m. | OK | Python 2 | TESTS | 3 | 155 | 0 | ||
102624223 | thuglife69 | A | Dec. 28, 2020, 4:41 p.m. | OK | Python 2 | TESTS | 3 | 170 | 0 | ||
102648518 | ComptineDunAutreEte | A | Dec. 29, 2020, 12:05 a.m. | OK | Python 2 | TESTS | 7 | 171 | 0 | ||
102648465 | ComptineDunAutreEte | A | Dec. 29, 2020, 12:02 a.m. | OK | Python 2 | TESTS | 7 | 171 | 0 | ||
102618936 | manjeet404 | A | Dec. 28, 2020, 4:27 p.m. | OK | Python 2 | TESTS | 3 | 171 | 0 | ||
102637079 | gs_gupta | A | Dec. 28, 2020, 6:54 p.m. | OK | Python 3 | TESTS | 3 | 77 | 0 | ||
102656104 | rky673 | A | Dec. 29, 2020, 4:40 a.m. | OK | Python 3 | TESTS | 7 | 93 | 0 | ||
102652303 | Ahamed30 | A | Dec. 29, 2020, 2:48 a.m. | OK | Python 3 | TESTS | 7 | 93 | 0 | ||
102649854 | yum | A | Dec. 29, 2020, 1:03 a.m. | OK | Python 3 | TESTS | 7 | 93 | 0 | ||
102645672 | tunahhfishy | A | Dec. 28, 2020, 10:03 p.m. | OK | Python 3 | TESTS | 7 | 93 | 0 | ||
102640629 | angrycder | A | Dec. 28, 2020, 7:55 p.m. | OK | Python 3 | TESTS | 7 | 93 | 0 | ||
102639415 | rajshreegupta2220 | A | Dec. 28, 2020, 7:33 p.m. | OK | Python 3 | TESTS | 3 | 93 | 0 | ||
102634570 | ankurraj511 | A | Dec. 28, 2020, 6:19 p.m. | OK | Python 3 | TESTS | 3 | 93 | 0 | ||
102632504 | sh1194 | A | Dec. 28, 2020, 5:52 p.m. | OK | Python 3 | TESTS | 3 | 93 | 0 | ||
102630872 | sicon54 | A | Dec. 28, 2020, 5:33 p.m. | OK | Python 3 | TESTS | 3 | 93 | 0 | ||
102628851 | gmm_tea | A | Dec. 28, 2020, 5:11 p.m. | OK | Ruby | TESTS | 3 | 467 | 512000 | ||
102635008 | Slsvcn | A | Dec. 28, 2020, 6:25 p.m. | OK | Rust | TESTS | 3 | 15 | 0 | ||
102654252 | satylogin | A | Dec. 29, 2020, 3:51 a.m. | OK | Rust | TESTS | 7 | 31 | 0 |
Back to search problems