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 |
---|---|---|---|---|---|---|
1553 | Harbour.Space Scholarship Contest 2021-2022 (open for everyone, rated, Div. 1 + Div. 2) | FINISHED | False | 9000 | 110215463 | July 22, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 13967 ) | D | Backspace | PROGRAMMING | greedy strings two pointers |
B'You are given two strings s and t , both consisting of lowercase English letters. You are going to type the string s character by character, from the first character to the last one. When typing a character, instead of pressing the button corresponding to it, you can press the "Backspace" button. It deletes the last character you have typed among those that aren 't deleted yet (or does nothing if there are no characters in the current string). For example, if s is "abcbd" and you press Backspace instead of typing the first and the fourth characters, you will get the string "bd" (the first press of Backspace deletes no character, and the second press deletes the character 'c '). Another example, if s is "abcaa" and you press Backspace instead of the last two letters, then the resulting text is "a". Your task is to determine whether you can obtain the string t , if you type the string s and press "Backspace" instead of typing several (maybe zero) characters of s . The first line contains a single integer q ( 1 <= q <= 10^5 ) -- the number of test cases. The first line of each test case contains the string s ( 1 <= |s| <= 10^5 ). Each character of s is a lowercase English letter. The second line of each test case contains the string t ( 1 <= |t| <= 10^5 ). Each character of t is a lowercase English letter. It is guaranteed that the total number of characters in the strings over all test cases does not exceed 2 cdot 10^5 . For each test case, print "YES" if you can obtain the string t by typing the string s and replacing some characters with presses of "Backspace" button, or "NO" if you cannot. You may print each letter in any case (YES, yes, Yes will all be recognized as positive answer, NO, no and nO will all be recognized as negative answer). Consider the example test from the statement. In order to obtain "ba" from "ababa", you may press Backspace '... |
Harbour.Space Scholarship Contest 2021-2022 (Div. 1 + Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
123382919 | 1435730 | D | July 23, 2021, 3:02 a.m. | OK | GNU C11 | TESTS | 119 | 62 | 3891200 | ||
123346148 | 6945752024PhucLX | D | July 22, 2021, 4:47 p.m. | OK | GNU C11 | TESTS | 119 | 374 | 3891200 | ||
123375580 | hkxadpall | D | July 23, 2021, 12:58 a.m. | OK | GNU C++11 | TESTS | 119 | 31 | 8499200 | ||
123384067 | _horizon_ | D | July 23, 2021, 3:18 a.m. | OK | GNU C++11 | TESTS | 119 | 46 | 4096000 | ||
123346017 | TheOldDriver | D | July 22, 2021, 4:46 p.m. | OK | GNU C++11 | TESTS | 119 | 46 | 4096000 | ||
123392028 | _Sunrise | D | July 23, 2021, 5:10 a.m. | OK | GNU C++11 | TESTS | 119 | 46 | 4096000 | ||
123387224 | ColdHeat | D | July 23, 2021, 4:02 a.m. | OK | GNU C++11 | TESTS | 119 | 46 | 4096000 | ||
123374497 | 1443356159 Capitalist_Wang | D | July 23, 2021, 12:30 a.m. | OK | GNU C++11 | TESTS | 119 | 46 | 4300800 | ||
123349141 | mrclr | D | July 22, 2021, 4:56 p.m. | OK | GNU C++11 | TESTS | 119 | 46 | 5324800 | ||
123380140 | ILoLy | D | July 23, 2021, 2:21 a.m. | OK | GNU C++11 | TESTS | 119 | 46 | 5734400 | ||
123394368 | dysyn1413 | D | July 23, 2021, 5:39 a.m. | OK | GNU C++11 | TESTS | 119 | 46 | 48537600 | ||
123392243 | _starling_ | D | July 23, 2021, 5:13 a.m. | OK | GNU C++11 | TESTS | 119 | 61 | 4096000 | ||
123383599 | vspawar056 | D | July 23, 2021, 3:12 a.m. | OK | GNU C++14 | TESTS | 119 | 31 | 4403200 | ||
123362506 | antguz | D | July 22, 2021, 7:39 p.m. | OK | GNU C++14 | TESTS | 119 | 46 | 3993600 | ||
123389917 | vjudge1 | D | July 23, 2021, 4:42 a.m. | OK | GNU C++14 | TESTS | 119 | 46 | 3993600 | ||
123395622 | chongyatu | D | July 23, 2021, 5:53 a.m. | OK | GNU C++14 | TESTS | 119 | 46 | 4300800 | ||
123394438 | sainiprateek37 | D | July 23, 2021, 5:39 a.m. | OK | GNU C++14 | TESTS | 119 | 46 | 4300800 | ||
123394316 | N1NT3NDO_6666 | D | July 23, 2021, 5:38 a.m. | OK | GNU C++14 | TESTS | 119 | 46 | 4300800 | ||
123394100 | Araragi | D | July 23, 2021, 5:36 a.m. | OK | GNU C++14 | TESTS | 119 | 46 | 4300800 | ||
123393281 | krhariharan | D | July 23, 2021, 5:26 a.m. | OK | GNU C++14 | TESTS | 119 | 46 | 4300800 | ||
123396312 | inazuma_11 | D | July 23, 2021, 6:01 a.m. | OK | GNU C++14 | TESTS | 119 | 46 | 4300800 | ||
123395491 | I_francis | D | July 23, 2021, 5:51 a.m. | OK | GNU C++14 | TESTS | 119 | 46 | 4300800 | ||
123362151 | iancu | D | July 22, 2021, 7:34 p.m. | OK | GNU C++17 | TESTS | 119 | 46 | 3993600 | ||
123396317 | Lhohelhohehmm | D | July 23, 2021, 6:01 a.m. | OK | GNU C++17 | TESTS | 119 | 46 | 4198400 | ||
123395687 | Deep_20 | D | July 23, 2021, 5:54 a.m. | OK | GNU C++17 | TESTS | 119 | 46 | 4300800 | ||
123396335 | anurag_2025 | D | July 23, 2021, 6:01 a.m. | OK | GNU C++17 | TESTS | 119 | 46 | 4300800 | ||
123396222 | PrateekShakya | D | July 23, 2021, 6 a.m. | OK | GNU C++17 | TESTS | 119 | 46 | 4300800 | ||
123395919 | satyamtomar | D | July 23, 2021, 5:56 a.m. | OK | GNU C++17 | TESTS | 119 | 46 | 4300800 | ||
123395488 | coder_aj2007 | D | July 23, 2021, 5:51 a.m. | OK | GNU C++17 | TESTS | 119 | 46 | 4300800 | ||
123395214 | alphacoder49 | D | July 23, 2021, 5:48 a.m. | OK | GNU C++17 | TESTS | 119 | 46 | 4300800 | ||
123394749 | Devendra2104 | D | July 23, 2021, 5:43 a.m. | OK | GNU C++17 | TESTS | 119 | 46 | 4300800 | ||
123394500 | huangxihan | D | July 23, 2021, 5:40 a.m. | OK | GNU C++17 | TESTS | 119 | 46 | 4300800 | ||
123368018 | Linkus | D | July 22, 2021, 9:14 p.m. | OK | GNU C++17 (64) | TESTS | 119 | 31 | 4710400 | ||
123368557 | emorgan5289 | D | July 22, 2021, 9:26 p.m. | OK | GNU C++17 (64) | TESTS | 119 | 31 | 4812800 | ||
123386114 | DmitryLzr | D | July 23, 2021, 3:47 a.m. | OK | GNU C++17 (64) | TESTS | 119 | 31 | 4812800 | ||
123379239 | Alphagocc | D | July 23, 2021, 2:06 a.m. | OK | GNU C++17 (64) | TESTS | 119 | 31 | 5222400 | ||
123357185 | kaiboy | D | July 22, 2021, 6:44 p.m. | OK | GNU C++17 (64) | TESTS | 119 | 46 | 4505600 | ||
123363252 | ars9 | D | July 22, 2021, 7:49 p.m. | OK | GNU C++17 (64) | TESTS | 119 | 46 | 4505600 | ||
123383984 | vgtb | D | July 23, 2021, 3:17 a.m. | OK | GNU C++17 (64) | TESTS | 119 | 46 | 4505600 | ||
123374760 | Lxzy_Zby | D | July 23, 2021, 12:37 a.m. | OK | GNU C++17 (64) | TESTS | 119 | 46 | 4710400 | ||
123346553 | willy108 | D | July 22, 2021, 4:48 p.m. | OK | GNU C++17 (64) | TESTS | 119 | 46 | 4710400 | ||
123396265 | chandrashekarvt | D | July 23, 2021, 6 a.m. | OK | GNU C++17 (64) | TESTS | 119 | 46 | 4812800 | ||
123364688 | silver_sword | D | July 22, 2021, 8:10 p.m. | OK | Java 11 | TESTS | 119 | 202 | 23859200 | ||
123395741 | SaberXpro | D | July 23, 2021, 5:54 a.m. | OK | Java 11 | TESTS | 119 | 217 | 23859200 | ||
123370930 | Hemose | D | July 22, 2021, 10:27 p.m. | OK | Java 11 | TESTS | 119 | 218 | 23859200 | ||
123367693 | Debojit219 | D | July 22, 2021, 9:06 p.m. | OK | Java 11 | TESTS | 119 | 218 | 23859200 | ||
123389321 | Tharun0102 | D | July 23, 2021, 4:33 a.m. | OK | Java 11 | TESTS | 119 | 233 | 23859200 | ||
123386383 | mphillotry | D | July 23, 2021, 3:50 a.m. | OK | Java 11 | TESTS | 119 | 233 | 23859200 | ||
123363779 | tony_heart | D | July 22, 2021, 7:56 p.m. | OK | Java 11 | TESTS | 119 | 234 | 23756800 | ||
123349206 | ryanberg | D | July 22, 2021, 4:57 p.m. | OK | Java 11 | TESTS | 119 | 264 | 23859200 | ||
123357774 | Andwerp | D | July 22, 2021, 6:48 p.m. | OK | Java 11 | TESTS | 119 | 280 | 23859200 | ||
123360310 | Nicolas125841 | D | July 22, 2021, 7:11 p.m. | OK | Java 11 | TESTS | 119 | 530 | 23859200 | ||
123394961 | ganesh_6 | D | July 23, 2021, 5:45 a.m. | OK | Java 8 | TESTS | 119 | 124 | 20480000 | ||
123393805 | guru1603 | D | July 23, 2021, 5:32 a.m. | OK | Java 8 | TESTS | 119 | 140 | 20480000 | ||
123392600 | dogranmol | D | July 23, 2021, 5:18 a.m. | OK | Java 8 | TESTS | 119 | 140 | 20480000 | ||
123355830 | Whiplash99 | D | July 22, 2021, 6:37 p.m. | OK | Java 8 | TESTS | 119 | 140 | 20480000 | ||
123357756 | RonWonWon | D | July 22, 2021, 6:48 p.m. | OK | Java 8 | TESTS | 119 | 155 | 20480000 | ||
123348550 | VishuTomar | D | July 22, 2021, 4:55 p.m. | OK | Java 8 | TESTS | 119 | 155 | 20480000 | ||
123392411 | _robindhankhar | D | July 23, 2021, 5:15 a.m. | OK | Java 8 | TESTS | 119 | 170 | 20480000 | ||
123347558 | HideBeyondYou | D | July 22, 2021, 4:51 p.m. | OK | Java 8 | TESTS | 119 | 170 | 20480000 | ||
123351936 | nuni. | D | July 22, 2021, 5:04 p.m. | OK | Java 8 | TESTS | 119 | 234 | 20480000 | ||
123389066 | pikachu_pika_pika | D | July 23, 2021, 4:29 a.m. | OK | Java 8 | TESTS | 119 | 764 | 20582400 | ||
123370868 | reanimatorzon | D | July 22, 2021, 10:25 p.m. | OK | Kotlin | TESTS | 119 | 155 | 20992000 | ||
123368286 | dandoh | D | July 22, 2021, 9:20 p.m. | OK | Kotlin | TESTS | 119 | 810 | 32563200 | ||
123378052 | zhangpangpang | D | July 23, 2021, 1:47 a.m. | OK | MS C++ 2017 | TESTS | 119 | 62 | 3993600 | ||
123377886 | zhangpangpang | D | July 23, 2021, 1:44 a.m. | OK | MS C++ 2017 | TESTS | 119 | 62 | 3993600 | ||
123349552 | sazarov83 | D | July 22, 2021, 4:58 p.m. | OK | MS C++ 2017 | TESTS | 119 | 77 | 3993600 | ||
123360254 | NikoSun | D | July 22, 2021, 7:11 p.m. | OK | MS C++ 2017 | TESTS | 119 | 77 | 4096000 | ||
123390771 | vjudge1 | D | July 23, 2021, 4:53 a.m. | OK | MS C++ 2017 | TESTS | 119 | 78 | 3891200 | ||
123377558 | FLself | D | July 23, 2021, 1:38 a.m. | OK | MS C++ 2017 | TESTS | 119 | 78 | 4096000 | ||
123387187 | icecomet | D | July 23, 2021, 4:01 a.m. | OK | MS C++ 2017 | TESTS | 119 | 78 | 7168000 | ||
123393511 | 2019112325 | D | July 23, 2021, 5:29 a.m. | OK | MS C++ 2017 | TESTS | 119 | 389 | 4096000 | ||
123379962 | camacju | D | July 23, 2021, 2:18 a.m. | OK | MS C++ 2017 | TESTS | 119 | 405 | 4198400 | ||
123361713 | Tangerine | D | July 22, 2021, 7:28 p.m. | OK | MS C++ 2017 | TESTS | 119 | 421 | 4198400 | ||
123361645 | Het_Fadia | D | July 22, 2021, 7:27 p.m. | OK | PyPy 2 | TESTS | 119 | 155 | 30208000 | ||
123380408 | Mukundan314 | D | July 23, 2021, 2:25 a.m. | OK | PyPy 2 | TESTS | 119 | 186 | 26521600 | ||
123360938 | Het_Fadia | D | July 22, 2021, 7:18 p.m. | OK | PyPy 2 | TESTS | 119 | 187 | 30105600 | ||
123363297 | Het_Fadia | D | July 22, 2021, 7:49 p.m. | OK | PyPy 2 | TESTS | 119 | 217 | 30208000 | ||
123357951 | acorn11 | D | July 22, 2021, 6:50 p.m. | OK | PyPy 2 | TESTS | 119 | 1341 | 25702400 | ||
123372396 | acorn11 | D | July 22, 2021, 11:14 p.m. | OK | PyPy 2 | TESTS | 119 | 1372 | 26828800 | ||
123361065 | Het_Fadia | D | July 22, 2021, 7:20 p.m. | OK | PyPy 3 | TESTS | 119 | 202 | 27238400 | ||
123358913 | jimm89 | D | July 22, 2021, 6:57 p.m. | OK | PyPy 3 | TESTS | 119 | 234 | 28467200 | ||
123375087 | hxu10 | D | July 23, 2021, 12:46 a.m. | OK | PyPy 3 | TESTS | 119 | 234 | 29388800 | ||
123361445 | puzzleVerma | D | July 22, 2021, 7:25 p.m. | OK | PyPy 3 | TESTS | 119 | 265 | 29798400 | ||
123346756 | Believer_Ayush | D | July 22, 2021, 4:49 p.m. | OK | PyPy 3 | TESTS | 119 | 280 | 28876800 | ||
123391566 | Munchy_1 | D | July 23, 2021, 5:04 a.m. | OK | PyPy 3 | TESTS | 119 | 280 | 29696000 | ||
123356984 | sushmanth.dampur8780 | D | July 22, 2021, 6:43 p.m. | OK | PyPy 3 | TESTS | 119 | 280 | 29696000 | ||
123393748 | Sameer-Mann | D | July 23, 2021, 5:32 a.m. | OK | PyPy 3 | TESTS | 119 | 280 | 29900800 | ||
123387515 | kirito18086 | D | July 23, 2021, 4:06 a.m. | OK | PyPy 3 | TESTS | 119 | 280 | 29900800 | ||
123371288 | yash490 | D | July 22, 2021, 10:37 p.m. | OK | PyPy 3 | TESTS | 119 | 280 | 94720000 | ||
123356497 | acorn11 | D | July 22, 2021, 6:40 p.m. | OK | Python 2 | TESTS | 119 | 280 | 6860800 | ||
123393971 | Bambam_Shivam | D | July 23, 2021, 5:34 a.m. | OK | Python 3 | TESTS | 119 | 358 | 8192000 | ||
123378133 | M0u1ea5 | D | July 23, 2021, 1:48 a.m. | OK | Python 3 | TESTS | 119 | 374 | 7577600 | ||
123361835 | KeiTsukishima | D | July 22, 2021, 7:29 p.m. | OK | Python 3 | TESTS | 119 | 436 | 7987200 | ||
123382283 | srijan.sarkar | D | July 23, 2021, 2:52 a.m. | OK | Python 3 | TESTS | 119 | 498 | 7577600 | ||
123394536 | sh1194 | D | July 23, 2021, 5:40 a.m. | OK | Python 3 | TESTS | 119 | 889 | 7270400 | ||
123381852 | kaushik1877 | D | July 23, 2021, 2:47 a.m. | OK | Python 3 | TESTS | 119 | 904 | 7577600 | ||
123371243 | Kagemeka | D | July 22, 2021, 10:36 p.m. | OK | Python 3 | TESTS | 119 | 935 | 8396800 | ||
123371310 | Kagemeka | D | July 22, 2021, 10:38 p.m. | OK | Python 3 | TESTS | 119 | 982 | 8396800 | ||
123389093 | Coding_RDX | D | July 23, 2021, 4:30 a.m. | OK | Python 3 | TESTS | 119 | 997 | 8704000 | ||
123356580 | aryan_129 | D | July 22, 2021, 6:40 p.m. | OK | Python 3 | TESTS | 119 | 998 | 7680000 | ||
123382006 | bqn | D | July 23, 2021, 2:49 a.m. | OK | Rust | TESTS | 119 | 1029 | 5222400 |
Back to search problems