Codeforces Round 776 (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
1650 Codeforces Round 776 (Div. 3) FINISHED False 8100 85073099 March 8, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 34870 ) A Deletions of Two Adjacent Letters PROGRAMMING implementation strings

B'The string s is given, the string length is odd number. The string consists of lowercase letters of the Latin alphabet. As long as the string length is greater than 1 , the following operation can be performed on it: select any two adjacent letters in the string s and delete them from the string. For example, from the string "lemma" in one operation, you can get any of the four strings: "mma", "lma", "lea" or "lem" In particular, in one operation, the length of the string reduces by 2 . Formally, let the string s have the form s=s_1s_2 ... s_n ( n>1 ). During one operation, you choose an arbitrary index i ( 1 <= i < n ) and replace s=s_1s_2 ... s_{i-1}s_{i+2} ... s_n . For the given string s and the letter c , determine whether it is possible to make such a sequence of operations that in the end the equality s=c will be true? In other words, is there such a sequence of operations that the process will end with a string of length 1 , which consists of the letter c ? The first line of input data contains an integer t ( 1 <= t <= 10^3 ) -- the number of input test cases. The descriptions of the t cases follow. Each test case is represented by two lines: For each test case in a separate line output: You can output YES and NO in any case (for example, the strings yEs, yes, Yes and YES will be recognized as a positive response). In the first test case, s ="abcde". You need to get s ="c". For the first operation, delete the first two letters, we get s ="cde". In the second operation, we delete the last two letters, so we get the expected value of s ="c". In the third test case, s ="x", it is required to get s ="y". Obviously, this cannot be done. '...

Tutorials

100712

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
148934885 xhh_666 A March 9, 2022, 12:36 a.m. OK Clang++17 Diagnostics TESTS 5 31 0
148916559 GURJAR_PATEK A March 8, 2022, 5:58 p.m. OK Clang++17 Diagnostics TESTS 3 31 0
148939098 ruhan_S A March 9, 2022, 2:37 a.m. OK Clang++17 Diagnostics TESTS 5 31 2048000
148937130 minhnhatle A March 9, 2022, 1:45 a.m. OK FPC TESTS 5 15 102400
148904842 phanikumari A March 8, 2022, 4:44 p.m. OK GNU C11 TESTS 3 15 0
148917492 fctee A March 8, 2022, 6:08 p.m. OK GNU C11 TESTS 3 15 0
148915611 jahirulsarker01531 A March 8, 2022, 5:48 p.m. OK GNU C11 TESTS 3 15 0
148911112 fahimfarhad123 A March 8, 2022, 5:10 p.m. OK GNU C11 TESTS 3 31 0
148906771 Rangu_Dimple A March 8, 2022, 4:48 p.m. OK GNU C11 TESTS 3 31 0
148949708 EfeKLN A March 9, 2022, 5:47 a.m. OK GNU C11 TESTS 5 31 204800
148949227 Aadi1110 A March 9, 2022, 5:40 a.m. OK GNU C++14 TESTS 5 0 0
148947881 Pan_c A March 9, 2022, 5:22 a.m. OK GNU C++14 TESTS 5 0 0
148947766 VIH A March 9, 2022, 5:20 a.m. OK GNU C++14 TESTS 5 0 0
148947624 sanjogbhalla16 A March 9, 2022, 5:18 a.m. OK GNU C++14 TESTS 5 0 0
148947380 aman_5311 A March 9, 2022, 5:14 a.m. OK GNU C++14 TESTS 5 0 0
148946851 muski_54321 A March 9, 2022, 5:06 a.m. OK GNU C++14 TESTS 5 0 0
148946824 AniketTawani A March 9, 2022, 5:06 a.m. OK GNU C++14 TESTS 5 0 0
148946794 Matdkst A March 9, 2022, 5:05 a.m. OK GNU C++14 TESTS 5 0 0
148943328 aizaj506 A March 9, 2022, 4:04 a.m. OK GNU C++14 TESTS 5 0 0
148949621 Cicada3031 A March 9, 2022, 5:46 a.m. OK GNU C++14 TESTS 5 0 0
148950532 cls1277 A March 9, 2022, 5:57 a.m. OK GNU C++17 TESTS 5 0 0
148950715 mantis_praying A March 9, 2022, 6 a.m. OK GNU C++17 TESTS 5 0 0
148949733 ro27 A March 9, 2022, 5:47 a.m. OK GNU C++17 TESTS 5 0 0
148949006 Fabulist A March 9, 2022, 5:37 a.m. OK GNU C++17 TESTS 5 0 0
148948827 SugarSSSS A March 9, 2022, 5:35 a.m. OK GNU C++17 TESTS 5 0 0
148948618 Kareyev_Sayan A March 9, 2022, 5:32 a.m. OK GNU C++17 TESTS 5 0 0
148948120 LetsTryOneMoreTime A March 9, 2022, 5:25 a.m. OK GNU C++17 TESTS 5 0 0
148947904 JooQatry A March 9, 2022, 5:22 a.m. OK GNU C++17 TESTS 5 0 0
148947833 DEEON A March 9, 2022, 5:21 a.m. OK GNU C++17 TESTS 5 0 0
148947250 Aakash_ A March 9, 2022, 5:12 a.m. OK GNU C++17 TESTS 5 0 0
148949970 chor12345 A March 9, 2022, 5:50 a.m. OK GNU C++17 (64) TESTS 5 0 0
148948304 tditya_aeltia A March 9, 2022, 5:28 a.m. OK GNU C++17 (64) TESTS 5 0 0
148947844 CodeSlayer007 A March 9, 2022, 5:21 a.m. OK GNU C++17 (64) TESTS 5 0 0
148944305 202008140314 A March 9, 2022, 4:22 a.m. OK GNU C++17 (64) TESTS 5 0 0
148943051 mashed_aloo A March 9, 2022, 3:59 a.m. OK GNU C++17 (64) TESTS 5 0 0
148942776 yooy A March 9, 2022, 3:54 a.m. OK GNU C++17 (64) TESTS 5 0 0
148940283 pro_codrrr A March 9, 2022, 3:03 a.m. OK GNU C++17 (64) TESTS 5 0 0
148940001 Time_JYF A March 9, 2022, 2:57 a.m. OK GNU C++17 (64) TESTS 5 0 0
148939722 Harsh__18 A March 9, 2022, 2:51 a.m. OK GNU C++17 (64) TESTS 5 0 0
148939509 lynmisakura A March 9, 2022, 2:47 a.m. OK GNU C++17 (64) TESTS 5 0 0
148950044 Nichelangelo A March 9, 2022, 5:51 a.m. OK GNU C++20 (64) TESTS 5 0 0
148949870 SRI_SUNDARAN_13 A March 9, 2022, 5:49 a.m. OK GNU C++20 (64) TESTS 5 0 0
148949370 hahaharshita A March 9, 2022, 5:42 a.m. OK GNU C++20 (64) TESTS 5 0 0
148948662 Alex7 A March 9, 2022, 5:33 a.m. OK GNU C++20 (64) TESTS 5 0 0
148948499 wswerzscdfe A March 9, 2022, 5:31 a.m. OK GNU C++20 (64) TESTS 5 0 0
148948448 harpreet1237 A March 9, 2022, 5:30 a.m. OK GNU C++20 (64) TESTS 5 0 0
148948447 Sk_kr A March 9, 2022, 5:30 a.m. OK GNU C++20 (64) TESTS 5 0 0
148946713 zmzh A March 9, 2022, 5:04 a.m. OK GNU C++20 (64) TESTS 5 0 0
148946039 yzyyds A March 9, 2022, 4:54 a.m. OK GNU C++20 (64) TESTS 5 0 0
148945341 Practiceeee12 A March 9, 2022, 4:42 a.m. OK GNU C++20 (64) TESTS 5 0 0
148909264 TomazGomes A March 8, 2022, 4:58 p.m. OK Haskell TESTS 3 31 0
148916789 Andwerp A March 8, 2022, 6 p.m. OK Java 11 TESTS 3 140 0
148939366 ytripathi891 A March 9, 2022, 2:44 a.m. OK Java 11 TESTS 5 155 0
148950360 Debojit219 A March 9, 2022, 5:55 a.m. OK Java 11 TESTS 5 155 0
148940450 __Serendipity A March 9, 2022, 3:07 a.m. OK Java 11 TESTS 5 155 0
148935733 Wuya A March 9, 2022, 1:02 a.m. OK Java 11 TESTS 5 155 0
148913567 sym.b_m A March 8, 2022, 5:29 p.m. OK Java 11 TESTS 3 155 0
148910617 SaberXpro A March 8, 2022, 5:06 p.m. OK Java 11 TESTS 3 155 0
148927095 AWahba A March 8, 2022, 8:31 p.m. OK Java 11 TESTS 3 156 0
148917623 sahilgupta2201 A March 8, 2022, 6:09 p.m. OK Java 11 TESTS 3 156 0
148905397 dragord A March 8, 2022, 4:45 p.m. OK Java 11 TESTS 3 170 0
148910267 kocko A March 8, 2022, 5:04 p.m. OK Java 8 TESTS 3 77 0
148940685 ak_ankit A March 9, 2022, 3:12 a.m. OK Java 8 TESTS 5 78 0
148926509 sky9313 A March 8, 2022, 8:20 p.m. OK Java 8 TESTS 3 92 0
148914806 yuntae A March 8, 2022, 5:40 p.m. OK Java 8 TESTS 3 92 0
148911599 DEMO23 A March 8, 2022, 5:13 p.m. OK Java 8 TESTS 3 93 0
148948398 ITBeater A March 9, 2022, 5:30 a.m. OK Java 8 TESTS 5 93 0
148933470 kzhang2012 A March 8, 2022, 11:44 p.m. OK Java 8 TESTS 5 93 0
148913512 honeysingh18 A March 8, 2022, 5:28 p.m. OK Java 8 TESTS 3 93 0
148906073 himanshu2512 A March 8, 2022, 4:47 p.m. OK Java 8 TESTS 3 93 0
148913104 ShivamMehta A March 8, 2022, 5:25 p.m. OK Java 8 TESTS 3 93 5734400
148926791 AhmadShahal A March 8, 2022, 8:25 p.m. OK Kotlin 1.5 TESTS 3 187 0
148914680 Golovanov399 A March 8, 2022, 5:39 p.m. OK Kotlin 1.5 TESTS 3 202 0
148915552 emailam A March 8, 2022, 5:47 p.m. OK MS C++ 2017 TESTS 3 0 0
148927015 gabalawy A March 8, 2022, 8:29 p.m. OK MS C++ 2017 TESTS 3 0 0
148916096 emailam A March 8, 2022, 5:53 p.m. OK MS C++ 2017 TESTS 3 0 0
148922815 zuev93 A March 8, 2022, 7:18 p.m. OK MS C++ 2017 TESTS 3 0 0
148916828 Viktor36 A March 8, 2022, 6 p.m. OK MS C++ 2017 TESTS 3 0 0
148928009 AlaaAlmedane11 A March 8, 2022, 8:48 p.m. OK MS C++ 2017 TESTS 3 15 0
148918437 syx0519 A March 8, 2022, 6:19 p.m. OK MS C++ 2017 TESTS 3 15 0
148913028 nour.tofi.it A March 8, 2022, 5:24 p.m. OK MS C++ 2017 TESTS 3 15 0
148943024 Prycom A March 9, 2022, 3:58 a.m. OK MS C++ 2017 TESTS 5 15 0
148933362 _Rimjhim_36 A March 8, 2022, 11:40 p.m. OK MS C++ 2017 TESTS 5 15 0
148910438 qihto A March 8, 2022, 5:05 p.m. OK .NET Core C# TESTS 3 62 0
148932232 bluemegane A March 8, 2022, 10:35 p.m. OK .NET Core C# TESTS 5 62 0
148924371 adam.arabicbooks A March 8, 2022, 7:43 p.m. OK .NET Core C# TESTS 3 62 0
148943729 Olasiliksizci A March 9, 2022, 4:12 a.m. OK .NET Core C# TESTS 5 77 0
148921836 omarmohamed10 A March 8, 2022, 7:04 p.m. OK .NET Core C# TESTS 3 77 307200
148944884 MistaAsh A March 9, 2022, 4:33 a.m. OK PyPy 3 TESTS 5 92 1843200
148923778 grawlixes A March 8, 2022, 7:34 p.m. OK PyPy 3 TESTS 3 93 2867200
148918725 michael.g.pan A March 8, 2022, 6:22 p.m. OK PyPy 3 TESTS 3 108 1945600
148940736 toam A March 9, 2022, 3:12 a.m. OK PyPy 3 TESTS 5 108 2867200
148912486 crapcode A March 8, 2022, 5:20 p.m. OK PyPy 3 TESTS 3 109 3891200
148941337 harsh1308 A March 9, 2022, 3:24 a.m. OK PyPy 3 TESTS 5 124 2048000
148916689 feelme A March 8, 2022, 5:59 p.m. OK PyPy 3 TESTS 3 124 2764800
148947246 kuanc A March 9, 2022, 5:12 a.m. OK PyPy 3 TESTS 5 124 3174400
148903481 HarshitKumarGupta A March 8, 2022, 4:41 p.m. OK PyPy 3 TESTS 3 124 3584000
148940214 vrajh A March 9, 2022, 3:02 a.m. OK PyPy 3 TESTS 5 124 4812800
148909909 violist A March 8, 2022, 5:01 p.m. OK PyPy 3-64 TESTS 3 62 4096000
148935417 unknownSolver A March 9, 2022, 12:53 a.m. OK PyPy 3-64 TESTS 5 77 3072000
148940717 toam A March 9, 2022, 3:12 a.m. OK PyPy 3-64 TESTS 5 77 3584000
148950857 tanuki_10 A March 9, 2022, 6:01 a.m. OK PyPy 3-64 TESTS 5 77 3686400
148928431 wolfram_ A March 8, 2022, 8:56 p.m. OK PyPy 3-64 TESTS 3 77 3686400
148935337 unknownSolver A March 9, 2022, 12:50 a.m. OK PyPy 3-64 TESTS 5 77 3891200
148920751 wskhanh A March 8, 2022, 6:48 p.m. OK PyPy 3-64 TESTS 3 77 3891200
148946182 hardik2001 A March 9, 2022, 4:56 a.m. OK PyPy 3-64 TESTS 5 93 5939200
148935748 Liberator187 A March 9, 2022, 1:03 a.m. OK PyPy 3-64 TESTS 5 108 2969600
148927053 _Saacosta A March 8, 2022, 8:30 p.m. OK PyPy 3-64 TESTS 3 109 7065600
148918502 OLOGY A March 8, 2022, 6:19 p.m. OK Python 2 TESTS 3 30 102400
148907468 daaris A March 8, 2022, 4:49 p.m. OK Python 3 TESTS 3 15 0
148907518 shivaniceela A March 8, 2022, 4:49 p.m. OK Python 3 TESTS 3 30 0
148906585 Srilatha910 A March 8, 2022, 4:48 p.m. OK Python 3 TESTS 3 30 0
148905999 mouni_08 A March 8, 2022, 4:46 p.m. OK Python 3 TESTS 3 30 0
148904105 marrinithinreddy A March 8, 2022, 4:42 p.m. OK Python 3 TESTS 3 30 0
148904879 Chandanagadde A March 8, 2022, 4:44 p.m. OK Python 3 TESTS 3 30 0
148904983 anushakadari12 A March 8, 2022, 4:44 p.m. OK Python 3 TESTS 3 30 0
148943752 Arif_Salam A March 9, 2022, 4:12 a.m. OK Python 3 TESTS 5 30 0
148922133 sahilm A March 8, 2022, 7:08 p.m. OK Python 3 TESTS 3 30 0
148915509 AlMaz_63 A March 8, 2022, 5:47 p.m. OK Python 3 TESTS 3 30 0
148922367 QusaiHroub A March 8, 2022, 7:12 p.m. OK Rust 2021 TESTS 3 15 0

remove filters

Back to search problems