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 |
---|---|---|---|---|---|---|
1890 | Codeforces Round 906 (Div. 2) | FINISHED | False | 9000 | 38676263 | Oct. 28, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 17802 ) | B | Qingshan Loves Strings | PROGRAMMING | implementation |
B'Qingshan has a string s , while Daniel has a string t . Both strings only contain texttt{0} and texttt{1} . A string a of length k is good if and only if For example, texttt{1} , texttt{101} , texttt{0101} are good, while texttt{11} , texttt{1001} , texttt{001100} are not good. Qingshan wants to make s good. To do this, she can do the following operation any number of times (possibly, zero): Please tell Qingshan if it is possible to make s good. The input consists of multiple test cases. The first line contains a single integer T ( 1 <= T <= 2000 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains two integers n and m ( 1 <= n,m <= 50 ) -- the length of the strings s and t , respectively. The second line of each test case contains a string s of length n . The third line of each test case contains a string t of length m . It is guaranteed that s and t only contain texttt{0} and texttt{1} . For each test case, print "YES" (without quotes), if it is possible to make s good, and "NO" (without quotes) otherwise. You can print letters in any case (upper or lower). In the first test case, s is good initially, so you can get a good s by doing zero operations. In the second test case, you can do the following two operations (the inserted string t is underlined): and get s = texttt{101010101} , which is good. In the third test case, there is no way to make s good after any number of operations. '... |
Codeforces Round 906 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
230281054 | ansergeyg | B | Oct. 28, 2023, 7:26 p.m. | OK | C# 10 | TESTS | 13 | 46 | 921600 | ||
230294746 | bluemegane | B | Oct. 28, 2023, 10:47 p.m. | OK | C# 8 | TESTS | 13 | 108 | 716800 | ||
230289115 | nikita98 | B | Oct. 28, 2023, 9 p.m. | OK | Clang++17 Diagnostics | TESTS | 13 | 108 | 0 | ||
230302545 | xiaohap | B | Oct. 29, 2023, 2:42 a.m. | OK | Clang++20 Diagnostics | TESTS | 13 | 62 | 0 | ||
230302533 | Huuush | B | Oct. 29, 2023, 2:42 a.m. | OK | Clang++20 Diagnostics | TESTS | 13 | 93 | 0 | ||
230253232 | srivardhan00 | B | Oct. 28, 2023, 4:40 p.m. | OK | GNU C11 | TESTS | 13 | 31 | 0 | ||
230266057 | c0derro | B | Oct. 28, 2023, 5:36 p.m. | OK | GNU C11 | TESTS | 13 | 31 | 0 | ||
230302689 | WSSEsss | B | Oct. 29, 2023, 2:45 a.m. | OK | GNU C11 | TESTS | 13 | 31 | 0 | ||
230253609 | SANS_Surya | B | Oct. 28, 2023, 4:41 p.m. | OK | GNU C11 | TESTS | 13 | 46 | 0 | ||
230299974 | chenzaiyu | B | Oct. 29, 2023, 1:47 a.m. | OK | GNU C++14 | TESTS | 13 | 0 | 0 | ||
230275859 | garvil28 | B | Oct. 28, 2023, 6:39 p.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
230304341 | 429d51579a491c57 | B | Oct. 29, 2023, 3:16 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
230300788 | zyxawa | B | Oct. 29, 2023, 2:06 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
230297713 | Liooooo | B | Oct. 29, 2023, 12:41 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
230296806 | THEzsc | B | Oct. 29, 2023, 12:05 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
230296290 | LHLeisus | B | Oct. 28, 2023, 11:47 p.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
230307717 | masonpop | B | Oct. 29, 2023, 4:06 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
230309167 | rfpermen | B | Oct. 29, 2023, 4:30 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
230309585 | luogu_bot3 | B | Oct. 29, 2023, 4:37 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
230262197 | _peacock | B | Oct. 28, 2023, 5:03 p.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
230316110 | nathjess | B | Oct. 29, 2023, 5:57 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
230299462 | Hhl8924 | B | Oct. 29, 2023, 1:35 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
230270916 | Bedoo | B | Oct. 28, 2023, 6:04 p.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
230266352 | FzArK | B | Oct. 28, 2023, 5:38 p.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
230314238 | mehrab1513769 | B | Oct. 29, 2023, 5:37 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 102400 | ||
230315666 | _ASIF | B | Oct. 29, 2023, 5:53 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 102400 | ||
230315244 | parth_17 | B | Oct. 29, 2023, 5:48 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 102400 | ||
230315035 | _Fahim_Al_Islam_ | B | Oct. 29, 2023, 5:46 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 102400 | ||
230314924 | Nahif_Reza_99 | B | Oct. 29, 2023, 5:45 a.m. | OK | GNU C++17 | TESTS | 13 | 15 | 102400 | ||
230302519 | Once_I_Liked_AGirl | B | Oct. 29, 2023, 2:41 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
230314679 | Prabhat0602 | B | Oct. 29, 2023, 5:42 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
230310528 | alif_cse_ju | B | Oct. 29, 2023, 4:51 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
230305082 | CookedMutton | B | Oct. 29, 2023, 3:25 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
230301798 | OTTFF | B | Oct. 29, 2023, 2:26 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
230298988 | phantaihbl9102018 | B | Oct. 29, 2023, 1:21 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
230289485 | M00li | B | Oct. 28, 2023, 9:05 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
230289267 | rock_lock | B | Oct. 28, 2023, 9:02 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
230289050 | omicron_persei_8 | B | Oct. 28, 2023, 8:59 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
230286036 | vladik3301 | B | Oct. 28, 2023, 8:20 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
230310159 | Deep_1026 | B | Oct. 29, 2023, 4:45 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 0 | 0 | ||
230309001 | NotShivam_382 | B | Oct. 29, 2023, 4:27 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 0 | 0 | ||
230308250 | martensite | B | Oct. 29, 2023, 4:15 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 0 | 0 | ||
230308185 | Saptak3315 | B | Oct. 29, 2023, 4:14 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 0 | 0 | ||
230308163 | Abid2360 | B | Oct. 29, 2023, 4:14 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 0 | 0 | ||
230306592 | EthanZYF | B | Oct. 29, 2023, 3:48 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 0 | 0 | ||
230311707 | Parv0004 | B | Oct. 29, 2023, 5:07 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 0 | 0 | ||
230314252 | Noah_007 | B | Oct. 29, 2023, 5:37 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 0 | 0 | ||
230314388 | nandhagk1729 | B | Oct. 29, 2023, 5:39 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 0 | 0 | ||
230314863 | zengjun | B | Oct. 29, 2023, 5:44 a.m. | OK | GNU C++20 (64) | TESTS | 13 | 0 | 0 | ||
230284673 | Mhmmd.itani | B | Oct. 28, 2023, 8:04 p.m. | OK | Java 11 | TESTS | 13 | 171 | 0 | ||
230275629 | TCchen | B | Oct. 28, 2023, 6:38 p.m. | OK | Java 11 | TESTS | 13 | 171 | 0 | ||
230306224 | powervic08 | B | Oct. 29, 2023, 3:42 a.m. | OK | Java 11 | TESTS | 13 | 187 | 0 | ||
230252266 | sharnittest | B | Oct. 28, 2023, 4:37 p.m. | OK | Java 11 | TESTS | 13 | 202 | 0 | ||
230260085 | Nirvanaa | B | Oct. 28, 2023, 4:58 p.m. | OK | Java 11 | TESTS | 13 | 218 | 0 | ||
230265341 | MAUser | B | Oct. 28, 2023, 5:33 p.m. | OK | Java 11 | TESTS | 13 | 233 | 0 | ||
230310061 | Saurabh124 | B | Oct. 29, 2023, 4:44 a.m. | OK | Java 11 | TESTS | 13 | 249 | 0 | ||
230280540 | kevbamboo | B | Oct. 28, 2023, 7:21 p.m. | OK | Java 11 | TESTS | 13 | 249 | 0 | ||
230279274 | zopchur | B | Oct. 28, 2023, 7:09 p.m. | OK | Java 11 | TESTS | 13 | 265 | 0 | ||
230255465 | goldener | B | Oct. 28, 2023, 4:46 p.m. | OK | Java 11 | TESTS | 13 | 280 | 0 | ||
230272240 | Nagendravarma | B | Oct. 28, 2023, 6:13 p.m. | OK | Java 17 | TESTS | 13 | 187 | 512000 | ||
230308310 | TopCloser | B | Oct. 29, 2023, 4:16 a.m. | OK | Java 17 | TESTS | 13 | 202 | 614400 | ||
230254291 | GoogleMe | B | Oct. 28, 2023, 4:42 p.m. | OK | Java 17 | TESTS | 13 | 217 | 409600 | ||
230274992 | ARS-001 | B | Oct. 28, 2023, 6:33 p.m. | OK | Java 17 | TESTS | 13 | 218 | 614400 | ||
230285334 | Legend... | B | Oct. 28, 2023, 8:12 p.m. | OK | Java 17 | TESTS | 13 | 218 | 41779200 | ||
230257198 | nervest | B | Oct. 28, 2023, 4:50 p.m. | OK | Java 17 | TESTS | 13 | 233 | 409600 | ||
230305385 | k.SUMANTH | B | Oct. 29, 2023, 3:29 a.m. | OK | Java 17 | TESTS | 13 | 233 | 512000 | ||
230277449 | anand_mishra_ | B | Oct. 28, 2023, 6:53 p.m. | OK | Java 17 | TESTS | 13 | 233 | 614400 | ||
230255885 | nejjen | B | Oct. 28, 2023, 4:47 p.m. | OK | Java 17 | TESTS | 13 | 249 | 307200 | ||
230288967 | harshhtiwari | B | Oct. 28, 2023, 8:58 p.m. | OK | Java 17 | TESTS | 13 | 249 | 512000 | ||
230278335 | Harsh_Agrawal_12 | B | Oct. 28, 2023, 7:01 p.m. | OK | Java 21 | TESTS | 13 | 265 | 0 | ||
230251140 | whitespace07 | B | Oct. 28, 2023, 4:34 p.m. | OK | Java 21 | TESTS | 13 | 280 | 0 | ||
230251256 | iamzmeirambek | B | Oct. 28, 2023, 4:34 p.m. | OK | Java 21 | TESTS | 13 | 295 | 0 | ||
230310046 | NerfThis | B | Oct. 29, 2023, 4:44 a.m. | OK | Java 8 | TESTS | 13 | 108 | 0 | ||
230296282 | Alex_Gal | B | Oct. 28, 2023, 11:47 p.m. | OK | Java 8 | TESTS | 13 | 108 | 0 | ||
230302958 | Udayf | B | Oct. 29, 2023, 2:50 a.m. | OK | Java 8 | TESTS | 13 | 109 | 0 | ||
230284801 | __SSB__ | B | Oct. 28, 2023, 8:06 p.m. | OK | Java 8 | TESTS | 13 | 109 | 0 | ||
230285787 | __SSB__ | B | Oct. 28, 2023, 8:17 p.m. | OK | Java 8 | TESTS | 13 | 124 | 0 | ||
230275360 | Sumitsingh7 | B | Oct. 28, 2023, 6:36 p.m. | OK | Java 8 | TESTS | 13 | 140 | 5939200 | ||
230301140 | chengzijun_de_xiatian | B | Oct. 29, 2023, 2:13 a.m. | OK | Java 8 | TESTS | 13 | 171 | 0 | ||
230275203 | Abhishek2003a | B | Oct. 28, 2023, 6:34 p.m. | OK | Java 8 | TESTS | 13 | 171 | 0 | ||
230255537 | Taserboy | B | Oct. 28, 2023, 4:46 p.m. | OK | Java 8 | TESTS | 13 | 187 | 0 | ||
230255503 | chharshch123 | B | Oct. 28, 2023, 4:46 p.m. | OK | Java 8 | TESTS | 13 | 187 | 0 | ||
230253507 | losttowin | B | Oct. 28, 2023, 4:40 p.m. | OK | MS C++ 2017 | TESTS | 13 | 15 | 0 | ||
230282555 | Akhil_09 | B | Oct. 28, 2023, 7:41 p.m. | OK | MS C++ 2017 | TESTS | 13 | 31 | 0 | ||
230277511 | HernandezFHH2004 | B | Oct. 28, 2023, 6:54 p.m. | OK | MS C++ 2017 | TESTS | 13 | 31 | 0 | ||
230266513 | krish2004 | B | Oct. 28, 2023, 5:38 p.m. | OK | MS C++ 2017 | TESTS | 13 | 31 | 0 | ||
230251391 | 555lhz | B | Oct. 28, 2023, 4:35 p.m. | OK | MS C++ 2017 | TESTS | 13 | 31 | 0 | ||
230273428 | shubhamgoel0711 | B | Oct. 28, 2023, 6:21 p.m. | OK | PyPy 3 | TESTS | 13 | 218 | 8192000 | ||
230275938 | This_is_Adroit | B | Oct. 28, 2023, 6:40 p.m. | OK | PyPy 3 | TESTS | 13 | 233 | 7782400 | ||
230276654 | kashish_garg | B | Oct. 28, 2023, 6:46 p.m. | OK | PyPy 3 | TESTS | 13 | 249 | 6348800 | ||
230278053 | VidGa | B | Oct. 28, 2023, 6:58 p.m. | OK | PyPy 3 | TESTS | 13 | 264 | 6348800 | ||
230255133 | rushikesh_kotkar | B | Oct. 28, 2023, 4:45 p.m. | OK | PyPy 3 | TESTS | 13 | 264 | 8192000 | ||
230310897 | letamquang220805 | B | Oct. 29, 2023, 4:56 a.m. | OK | PyPy 3 | TESTS | 13 | 265 | 5939200 | ||
230280142 | rmr | B | Oct. 28, 2023, 7:17 p.m. | OK | PyPy 3-64 | TESTS | 13 | 108 | 5120000 | ||
230267361 | AndreiZherder | B | Oct. 28, 2023, 5:42 p.m. | OK | PyPy 3-64 | TESTS | 13 | 108 | 6041600 | ||
230300128 | aviral311 | B | Oct. 29, 2023, 1:51 a.m. | OK | PyPy 3-64 | TESTS | 13 | 109 | 4915200 | ||
230285881 | gardengnome | B | Oct. 28, 2023, 8:18 p.m. | OK | PyPy 3-64 | TESTS | 13 | 124 | 7782400 | ||
230266547 | ankitesh | B | Oct. 28, 2023, 5:38 p.m. | OK | PyPy 3-64 | TESTS | 13 | 124 | 7987200 | ||
230312444 | yuki_keshiki | B | Oct. 29, 2023, 5:16 a.m. | OK | PyPy 3-64 | TESTS | 13 | 124 | 9523200 | ||
230279366 | rmr | B | Oct. 28, 2023, 7:10 p.m. | OK | PyPy 3-64 | TESTS | 13 | 140 | 8704000 | ||
230292785 | RobinFromTheHood | B | Oct. 28, 2023, 10:01 p.m. | OK | PyPy 3-64 | TESTS | 13 | 155 | 9830400 | ||
230253266 | FelipeOP | B | Oct. 28, 2023, 4:40 p.m. | OK | PyPy 3-64 | TESTS | 13 | 155 | 139776000 | ||
230299900 | pyrogyx | B | Oct. 29, 2023, 1:46 a.m. | OK | PyPy 3-64 | TESTS | 13 | 186 | 22425600 | ||
230289932 | talavodoi | B | Oct. 28, 2023, 9:12 p.m. | OK | Python 3 | TESTS | 13 | 46 | 0 | ||
230279886 | eugalt | B | Oct. 28, 2023, 7:14 p.m. | OK | Python 3 | TESTS | 13 | 46 | 0 | ||
230266948 | EGXYZ | B | Oct. 28, 2023, 5:40 p.m. | OK | Python 3 | TESTS | 13 | 46 | 204800 | ||
230302683 | Islav03 | B | Oct. 29, 2023, 2:45 a.m. | OK | Python 3 | TESTS | 13 | 61 | 0 | ||
230301739 | catOWO2011 | B | Oct. 29, 2023, 2:25 a.m. | OK | Python 3 | TESTS | 13 | 61 | 0 | ||
230284327 | kushagra5067 | B | Oct. 28, 2023, 8 p.m. | OK | Python 3 | TESTS | 13 | 61 | 0 | ||
230274516 | MdNazmulHossain | B | Oct. 28, 2023, 6:29 p.m. | OK | Python 3 | TESTS | 13 | 61 | 0 | ||
230312197 | 4n0nym0us | B | Oct. 29, 2023, 5:13 a.m. | OK | Python 3 | TESTS | 13 | 62 | 0 | ||
230311465 | jollyRoger99 | B | Oct. 29, 2023, 5:04 a.m. | OK | Python 3 | TESTS | 13 | 62 | 0 | ||
230301168 | katib_03 | B | Oct. 29, 2023, 2:13 a.m. | OK | Python 3 | TESTS | 13 | 62 | 0 | ||
230289877 | 0x81 | B | Oct. 28, 2023, 9:11 p.m. | OK | Ruby 3 | TESTS | 13 | 467 | 1024000 |
Back to search problems