Codeforces Round 913 (Div. 3)

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
1907 Codeforces Round 913 (Div. 3) FINISHED False 8100 35392463 Dec. 5, 2023, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 26594 ) B YetnotherrokenKeoard PROGRAMMING data structures implementation strings

B'Polycarp has a problem -- his laptop keyboard is broken. Now, when he presses the 'b ' key, it acts like an unusual backspace: it deletes the last (rightmost) lowercase letter in the typed string. If there are no lowercase letters in the typed string, then the press is completely ignored. Similarly, when he presses the 'B ' key, it deletes the last (rightmost) uppercase letter in the typed string. If there are no uppercase letters in the typed string, then the press is completely ignored. In both cases, the letters 'b ' and 'B ' are not added to the typed string when these keys are pressed. Consider an example where the sequence of key presses was "ARaBbbitBaby". In this case, the typed string will change as follows: "" xrightarrow{ texttt{A}} "A" xrightarrow{ texttt{R}} "AR" xrightarrow{ texttt{a}} "ARa" xrightarrow{ texttt{B}} "Aa" xrightarrow{ texttt{b}} "A" xrightarrow{ texttt{b}} "A" xrightarrow{ texttt{i}} "Ai" xrightarrow{ texttt{t}} "Ait" xrightarrow{ texttt{B}} "it" xrightarrow{ texttt{a}} "ita" xrightarrow{ texttt{b}} "it" xrightarrow{ texttt{y}} "ity". Given a sequence of pressed keys, output the typed string after processing all key presses. The first line of the input data contains an integer t ( 1 <= t <= 1000 ), the number of test cases in the test. The following contains t non-empty lines, which consist of lowercase and uppercase letters of the Latin alphabet. It is guaranteed that each line contains at least one letter and the sum of the lengths of the lines does not exceed 10^6 . For each test case, output the result of processing the key presses on a separate line. If the typed string is empty, then output an empty line. '...

Tutorials

Codeforces Round 913 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
235949299 ungerfall B Dec. 5, 2023, 4:58 p.m. OK C# 10 TESTS 3 46 7475200
235978608 bluemegane B Dec. 5, 2023, 10:24 p.m. OK C# 8 TESTS 14 717 49254400
235955433 227r1a7304 B Dec. 5, 2023, 5:27 p.m. OK Clang++17 Diagnostics TESTS 3 748 46284800
235984204 Xunan21 B Dec. 6, 2023, 1:19 a.m. OK Clang++20 Diagnostics TESTS 14 685 26931200
235984381 Xunan21 B Dec. 6, 2023, 1:23 a.m. OK Clang++20 Diagnostics TESTS 14 701 40652800
235958302 vasavi_reddy7 B Dec. 5, 2023, 5:49 p.m. OK Clang++20 Diagnostics TESTS 3 748 46284800
235956544 CMRIT25_21R01A04D3 B Dec. 5, 2023, 5:35 p.m. OK Clang++20 Diagnostics TESTS 3 764 46284800
235968497 NenadDapic B Dec. 5, 2023, 7:33 p.m. OK FPC TESTS 3 30 14643200
235970937 NenadDapic B Dec. 5, 2023, 8:04 p.m. OK FPC TESTS 14 46 15564800
235967950 NenadDapic B Dec. 5, 2023, 7:27 p.m. OK FPC TESTS 3 109 14233600
235967250 boristhebear B Dec. 5, 2023, 7:19 p.m. OK GNU C11 TESTS 3 30 10035200
235946297 cit14 B Dec. 5, 2023, 4:52 p.m. OK GNU C11 TESTS 3 46 10035200
235959170 Sathi13 B Dec. 5, 2023, 5:56 p.m. OK GNU C++14 TESTS 3 15 3072000
235961310 Hrithik001 B Dec. 5, 2023, 6:16 p.m. OK GNU C++14 TESTS 3 15 3072000
235948087 NguCODE B Dec. 5, 2023, 4:56 p.m. OK GNU C++14 TESTS 3 15 3584000
235956785 ritik108 B Dec. 5, 2023, 5:37 p.m. OK GNU C++14 TESTS 3 15 6041600
235957739 rajnish0808 B Dec. 5, 2023, 5:44 p.m. OK GNU C++14 TESTS 3 15 6041600
235946841 shikha170 B Dec. 5, 2023, 4:53 p.m. OK GNU C++14 TESTS 3 15 8499200
235944532 Helixion B Dec. 5, 2023, 4:47 p.m. OK GNU C++14 TESTS 3 30 2048000
235965432 sajalmittal1501 B Dec. 5, 2023, 6:57 p.m. OK GNU C++14 TESTS 3 30 2764800
235959700 S.A.Shuvo B Dec. 5, 2023, 6 p.m. OK GNU C++14 TESTS 3 30 3072000
235956396 huseinlihuseyn09 B Dec. 5, 2023, 5:34 p.m. OK GNU C++14 TESTS 3 30 6246400
235944356 muhammad_sayem B Dec. 5, 2023, 4:47 p.m. OK GNU C++17 TESTS 3 0 3072000
235965773 Sara11Coder B Dec. 5, 2023, 7:01 p.m. OK GNU C++17 TESTS 3 0 11366400
235954409 Deraralhamsh B Dec. 5, 2023, 5:20 p.m. OK GNU C++17 TESTS 3 15 2048000
235944208 WT_CODER B Dec. 5, 2023, 4:47 p.m. OK GNU C++17 TESTS 3 15 2150400
235961727 NaBaekjin B Dec. 5, 2023, 6:19 p.m. OK GNU C++17 TESTS 3 15 2764800
235961650 lone_hex B Dec. 5, 2023, 6:19 p.m. OK GNU C++17 TESTS 3 15 3072000
235960798 3itachi B Dec. 5, 2023, 6:11 p.m. OK GNU C++17 TESTS 3 15 3072000
235960137 shafiq1st B Dec. 5, 2023, 6:04 p.m. OK GNU C++17 TESTS 3 15 3072000
235962944 24kHertz B Dec. 5, 2023, 6:31 p.m. OK GNU C++17 TESTS 3 15 3072000
235962995 Saado B Dec. 5, 2023, 6:31 p.m. OK GNU C++17 TESTS 3 15 3072000
235961525 El-gaidi B Dec. 5, 2023, 6:18 p.m. OK GNU C++17 (64) TESTS 3 0 3174400
235958314 klr_i B Dec. 5, 2023, 5:49 p.m. OK GNU C++17 (64) TESTS 3 15 3072000
235963823 El-gaidi B Dec. 5, 2023, 6:40 p.m. OK GNU C++17 (64) TESTS 3 15 3174400
235960605 dipanjan.mandal2001 B Dec. 5, 2023, 6:09 p.m. OK GNU C++17 (64) TESTS 3 15 5120000
235958391 dipanjan.mandal2001 B Dec. 5, 2023, 5:49 p.m. OK GNU C++17 (64) TESTS 3 15 5120000
235959425 xiaossr B Dec. 5, 2023, 5:58 p.m. OK GNU C++17 (64) TESTS 3 15 5222400
235949774 Marselel B Dec. 5, 2023, 4:59 p.m. OK GNU C++17 (64) TESTS 3 15 8396800
235988211 sxsygz B Dec. 6, 2023, 2:41 a.m. OK GNU C++17 (64) TESTS 14 30 5017600
235947097 AnosVoldigoad B Dec. 5, 2023, 4:53 p.m. OK GNU C++17 (64) TESTS 3 30 5120000
235957328 L_wwqq. B Dec. 5, 2023, 5:41 p.m. OK GNU C++17 (64) TESTS 3 30 12595200
235943929 ritikrajvanshi B Dec. 5, 2023, 4:46 p.m. OK GNU C++20 (64) TESTS 3 0 2150400
235957975 Sakurama B Dec. 5, 2023, 5:46 p.m. OK GNU C++20 (64) TESTS 3 0 3072000
235953174 spexcher B Dec. 5, 2023, 5:13 p.m. OK GNU C++20 (64) TESTS 3 0 3072000
235960743 ashwin_510 B Dec. 5, 2023, 6:10 p.m. OK GNU C++20 (64) TESTS 3 0 3072000
235959327 pauljunak B Dec. 5, 2023, 5:57 p.m. OK GNU C++20 (64) TESTS 3 0 3072000
235960060 maharun B Dec. 5, 2023, 6:04 p.m. OK GNU C++20 (64) TESTS 3 0 4198400
235966831 faisselmok1 B Dec. 5, 2023, 7:14 p.m. OK GNU C++20 (64) TESTS 3 0 7372800
235949701 wyf7685 B Dec. 5, 2023, 4:59 p.m. OK GNU C++20 (64) TESTS 3 0 19148800
235952306 ahmedatef22 B Dec. 5, 2023, 5:08 p.m. OK GNU C++20 (64) TESTS 3 0 103321600
235967268 maharun B Dec. 5, 2023, 7:19 p.m. OK GNU C++20 (64) TESTS 3 15 2150400
235983044 SadFriedRice B Dec. 6, 2023, 12:47 a.m. OK Go TESTS 14 265 63488000
235955776 jakobrs B Dec. 5, 2023, 5:29 p.m. OK Haskell TESTS 3 436 129228800
235957871 jakobrs B Dec. 5, 2023, 5:46 p.m. OK Haskell TESTS 3 810 173363200
235957969 jakobrs B Dec. 5, 2023, 5:46 p.m. OK Haskell TESTS 3 841 173363200
235959776 Yousef_Badr B Dec. 5, 2023, 6:01 p.m. OK Java 11 TESTS 3 171 0
235952935 MaroMaxor B Dec. 5, 2023, 5:12 p.m. OK Java 11 TESTS 3 187 0
235958606 druti6 B Dec. 5, 2023, 5:51 p.m. OK Java 11 TESTS 3 233 0
235945445 sahilgupta8470 B Dec. 5, 2023, 4:50 p.m. OK Java 11 TESTS 3 248 0
235987832 WindLY B Dec. 6, 2023, 2:36 a.m. OK Java 11 TESTS 14 264 1126400
235961395 pngh.46.47 B Dec. 5, 2023, 6:17 p.m. OK Java 11 TESTS 3 280 29593600
235973575 sisi.ren.work B Dec. 5, 2023, 8:40 p.m. OK Java 11 TESTS 14 374 36761600
235947191 Harsha_1710 B Dec. 5, 2023, 4:54 p.m. OK Java 11 TESTS 3 404 26112000
235952564 _not_found B Dec. 5, 2023, 5:10 p.m. OK Java 11 TESTS 3 436 26112000
235995930 siddak_18 B Dec. 6, 2023, 4:50 a.m. OK Java 11 TESTS 14 436 35942400
235944625 Bekoooo B Dec. 5, 2023, 4:48 p.m. OK Java 17 TESTS 3 202 819200
235953118 Liiii B Dec. 5, 2023, 5:13 p.m. OK Java 17 TESTS 3 202 4198400
235953993 AyushVardhan B Dec. 5, 2023, 5:18 p.m. OK Java 17 TESTS 3 248 716800
235952522 ZeitHaum B Dec. 5, 2023, 5:09 p.m. OK Java 17 TESTS 3 249 0
235953778 CMRIT25_21R01A7342 B Dec. 5, 2023, 5:16 p.m. OK Java 17 TESTS 3 264 102400
235943663 Tvish7962 B Dec. 5, 2023, 4:45 p.m. OK Java 17 TESTS 3 264 204800
235946918 bhavyabansal1126 B Dec. 5, 2023, 4:53 p.m. OK Java 17 TESTS 3 264 512000
235959695 Mostafa_Murad B Dec. 5, 2023, 6 p.m. OK Java 17 TESTS 3 265 20275200
235957772 Jagnath_Reddy B Dec. 5, 2023, 5:45 p.m. OK Java 17 TESTS 3 327 32358400
235947456 bhanusvc_nimmala B Dec. 5, 2023, 4:54 p.m. OK Java 17 TESTS 3 405 31641600
235955361 vikasseervi357 B Dec. 5, 2023, 5:26 p.m. OK Java 21 TESTS 3 249 0
235947293 istiaqueremon B Dec. 5, 2023, 4:54 p.m. OK Java 21 TESTS 3 249 0
235945940 nikesh1057 B Dec. 5, 2023, 4:51 p.m. OK Java 21 TESTS 3 280 102400
235948587 Samyajit125 B Dec. 5, 2023, 4:57 p.m. OK Java 21 TESTS 3 311 102400
235958134 hardikr249 B Dec. 5, 2023, 5:47 p.m. OK Java 21 TESTS 3 311 1228800
235994186 cnzh B Dec. 6, 2023, 4:23 a.m. OK Java 21 TESTS 14 358 716800
235961213 nikesh1057 B Dec. 5, 2023, 6:15 p.m. OK Java 21 TESTS 3 405 22323200
235960730 himneesh9 B Dec. 5, 2023, 6:10 p.m. OK Java 21 TESTS 3 405 22835200
235958723 java_noob69 B Dec. 5, 2023, 5:52 p.m. OK Java 21 TESTS 3 498 66355200
235996653 darshanjan-entrepreneur B Dec. 6, 2023, 4:59 a.m. OK Java 21 TESTS 14 624 67379200
235947327 21241A05W2 B Dec. 5, 2023, 4:54 p.m. OK Java 8 TESTS 3 124 2150400
235955191 21241a6712 B Dec. 5, 2023, 5:25 p.m. OK Java 8 TESTS 3 187 307200
235990258 Akmaljon.08 B Dec. 6, 2023, 3:12 a.m. OK Java 8 TESTS 14 202 307200
235989071 Akmaljon.08 B Dec. 6, 2023, 2:54 a.m. OK Java 8 TESTS 14 202 3891200
235986245 chengzijun_de_xiatian B Dec. 6, 2023, 2:05 a.m. OK Java 8 TESTS 14 202 3891200
235951512 simple_arya B Dec. 5, 2023, 5:05 p.m. OK Java 8 TESTS 3 217 3174400
235953430 simple_arya B Dec. 5, 2023, 5:14 p.m. OK Java 8 TESTS 3 217 4300800
235992922 Java_Programmer B Dec. 6, 2023, 4:01 a.m. OK Java 8 TESTS 14 296 31334400
235957384 Akarsh2810 B Dec. 5, 2023, 5:42 p.m. OK Java 8 TESTS 3 343 25088000
235961216 Prakhar_Mittal B Dec. 5, 2023, 6:15 p.m. OK Java 8 TESTS 3 343 28467200
235963354 _a253 B Dec. 5, 2023, 6:35 p.m. OK Kotlin 1.7 TESTS 3 685 31744000
235944100 Capablanca B Dec. 5, 2023, 4:46 p.m. OK MS C++ 2017 TESTS 3 15 3481600
235961269 ElBarbados B Dec. 5, 2023, 6:15 p.m. OK MS C++ 2017 TESTS 3 46 2355200
235988892 UjjawalKumar B Dec. 6, 2023, 2:52 a.m. OK MS C++ 2017 TESTS 14 46 3174400
235948464 chayan.surana3 B Dec. 5, 2023, 4:56 p.m. OK MS C++ 2017 TESTS 3 77 7987200
235998654 Ravitosh B Dec. 6, 2023, 5:25 a.m. OK MS C++ 2017 TESTS 14 78 3174400
235989261 Jasharaj B Dec. 6, 2023, 2:57 a.m. OK MS C++ 2017 TESTS 14 93 15360000
235945855 chenyq_argon B Dec. 5, 2023, 4:51 p.m. OK MS C++ 2017 TESTS 3 93 38809600
235969899 alaevS B Dec. 5, 2023, 7:50 p.m. OK MS C++ 2017 TESTS 14 124 14233600
235985486 WXL. B Dec. 6, 2023, 1:49 a.m. OK MS C++ 2017 TESTS 14 139 13209600
235983909 o-u-ma-syu B Dec. 6, 2023, 1:11 a.m. OK MS C++ 2017 TESTS 14 140 11059200
235974431 mr_dramm B Dec. 5, 2023, 8:54 p.m. OK Node.js TESTS 14 170 93286400
235952681 _M-H-O_ B Dec. 5, 2023, 5:10 p.m. OK Node.js TESTS 3 217 64409600
235964695 mr_dramm B Dec. 5, 2023, 6:49 p.m. OK Node.js TESTS 3 389 126361600
235978486 rsFalse B Dec. 5, 2023, 10:21 p.m. OK Perl TESTS 14 624 5017600
235977467 rsFalse B Dec. 5, 2023, 9:53 p.m. OK Perl TESTS 14 686 3174400
235977375 rsFalse B Dec. 5, 2023, 9:51 p.m. OK Perl TESTS 14 732 3584000
235977358 rsFalse B Dec. 5, 2023, 9:51 p.m. OK Perl TESTS 14 733 3584000
235977401 rsFalse B Dec. 5, 2023, 9:52 p.m. OK Perl TESTS 14 764 3584000
235947496 Mashul B Dec. 5, 2023, 4:54 p.m. OK PyPy 3 TESTS 3 218 25497600
235961303 dagmat B Dec. 5, 2023, 6:16 p.m. OK PyPy 3 TESTS 3 249 36454400
235958332 21bec036 B Dec. 5, 2023, 5:49 p.m. OK PyPy 3 TESTS 3 280 29593600
235971553 dejandenib B Dec. 5, 2023, 8:12 p.m. OK PyPy 3 TESTS 14 358 40960000
235944295 vamshisingam15 B Dec. 5, 2023, 4:47 p.m. OK PyPy 3 TESTS 3 389 43724800
235974548 khanter_ B Dec. 5, 2023, 8:56 p.m. OK PyPy 3 TESTS 14 405 45670400
235967359 abraccadabra B Dec. 5, 2023, 7:20 p.m. OK PyPy 3 TESTS 3 405 54784000
235948314 abraccadabra B Dec. 5, 2023, 4:56 p.m. OK PyPy 3 TESTS 3 436 54988800
235968510 TychoElling B Dec. 5, 2023, 7:33 p.m. OK PyPy 3 TESTS 3 514 39014400
235985128 acken B Dec. 6, 2023, 1:42 a.m. OK PyPy 3 TESTS 14 592 24064000
235947478 sushmanth.dampur8780 B Dec. 5, 2023, 4:54 p.m. OK PyPy 3-64 TESTS 3 155 39731200
235952751 mb6ockatf B Dec. 5, 2023, 5:11 p.m. OK PyPy 3-64 TESTS 3 171 39526400
235951328 beofrosty B Dec. 5, 2023, 5:04 p.m. OK PyPy 3-64 TESTS 3 171 40038400
235974803 n0ob.bin B Dec. 5, 2023, 9 p.m. OK PyPy 3-64 TESTS 14 187 37683200
235967720 nanoblob B Dec. 5, 2023, 7:24 p.m. OK PyPy 3-64 TESTS 3 187 52531200
235955773 KRKevin B Dec. 5, 2023, 5:29 p.m. OK PyPy 3-64 TESTS 3 202 72089600
235950642 Alfa330 B Dec. 5, 2023, 5:01 p.m. OK PyPy 3-64 TESTS 3 217 42188800
235958173 SuPythony B Dec. 5, 2023, 5:48 p.m. OK PyPy 3-64 TESTS 3 217 72806400
235964012 abenezer_m54 B Dec. 5, 2023, 6:42 p.m. OK PyPy 3-64 TESTS 3 233 59596800
235971203 gardengnome B Dec. 5, 2023, 8:08 p.m. OK PyPy 3-64 TESTS 14 233 70963200
235971560 dejandenib B Dec. 5, 2023, 8:13 p.m. OK Python 3 TESTS 14 233 20480000
235948239 sonusharma390788 B Dec. 5, 2023, 4:56 p.m. OK Python 3 TESTS 3 249 5120000
235958648 quep009 B Dec. 5, 2023, 5:51 p.m. OK Python 3 TESTS 3 265 39321600
235958803 21bec036 B Dec. 5, 2023, 5:53 p.m. OK Python 3 TESTS 3 280 4608000
235944826 benarba B Dec. 5, 2023, 4:48 p.m. OK Python 3 TESTS 3 280 4608000
235952331 Niki_fx B Dec. 5, 2023, 5:09 p.m. OK Python 3 TESTS 3 296 4608000
235973161 dejandenib B Dec. 5, 2023, 8:34 p.m. OK Python 3 TESTS 14 327 21401600
235958392 21bec036 B Dec. 5, 2023, 5:49 p.m. OK Python 3 TESTS 3 342 4608000
235997219 papdichaat B Dec. 6, 2023, 5:07 a.m. OK Python 3 TESTS 14 342 35840000
235973066 dejandenib B Dec. 5, 2023, 8:33 p.m. OK Python 3 TESTS 14 343 5529600
235947306 samurai_0028 B Dec. 5, 2023, 4:54 p.m. OK Rust 2021 TESTS 3 62 17920000
235972448 Hyrulia B Dec. 5, 2023, 8:24 p.m. OK Rust 2021 TESTS 14 108 33689600

remove filters

Back to search problems