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 |
---|---|---|---|---|---|---|
1628 | Codeforces Round 767 (Div. 1) | FINISHED | False | 7200 | 88961099 | Jan. 22, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 11689 ) | B | Peculiar Movie Preferences | PROGRAMMING | greedy strings |
B'Mihai plans to watch a movie. He only likes palindromic movies, so he wants to skip some (possibly zero) scenes to make the remaining parts of the movie palindromic. You are given a list s of n non-empty strings of length at most 3 , representing the scenes of Mihai 's movie. A subsequence of s is called awesome if it is non-empty and the concatenation of the strings in the subsequence, in order, is a palindrome. Can you help Mihai check if there is at least one awesome subsequence of s ? A palindrome is a string that reads the same backward as forward, for example strings "z", "aaa", "aba", "abccba" are palindromes, but strings "codeforces", "reality", "ab" are not. A sequence a is a non-empty subsequence of a non-empty sequence b if a can be obtained from b by deletion of several (possibly zero, but not all) elements. The first line of the input contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The description of test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 10^5 ) -- the number of scenes in the movie. Then follows n lines, the i -th of which containing a single non-empty string s_i of length at most 3 , consisting of lowercase Latin letters. It is guaranteed that the sum of n over all test cases does not exceed 10^5 . For each test case, print "YES" if there is an awesome subsequence of s , or "NO" otherwise (case insensitive). In the first test case, an awesome subsequence of s is [ab, cc, ba] '... |
99276 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
143687737 | Gassa | B | Jan. 22, 2022, 4:07 p.m. | OK | D | TESTS | 39 | 109 | 13721600 | ||
143707433 | rainboy | B | Jan. 22, 2022, 5:58 p.m. | OK | GNU C11 | TESTS | 40 | 31 | 0 | ||
143687866 | peiwenjun | B | Jan. 22, 2022, 4:07 p.m. | OK | GNU C++14 | TESTS | 39 | 31 | 0 | ||
143666833 | abcde34534 | B | Jan. 22, 2022, 3:23 p.m. | OK | GNU C++14 | TESTS | 39 | 31 | 0 | ||
143658298 | LeafSeek | B | Jan. 22, 2022, 3:08 p.m. | OK | GNU C++14 | TESTS | 39 | 31 | 0 | ||
143654654 | ghj1222 | B | Jan. 22, 2022, 3:02 p.m. | OK | GNU C++14 | TESTS | 39 | 31 | 102400 | ||
143703104 | s39202972 | B | Jan. 22, 2022, 5:27 p.m. | OK | GNU C++14 | TESTS | 39 | 31 | 102400 | ||
143666921 | sleep__ | B | Jan. 22, 2022, 3:23 p.m. | OK | GNU C++14 | TESTS | 39 | 31 | 409600 | ||
143729194 | leiyuanze | B | Jan. 23, 2022, 3:06 a.m. | OK | GNU C++14 | TESTS | 40 | 31 | 512000 | ||
143665687 | ethan_enhe | B | Jan. 22, 2022, 3:21 p.m. | OK | GNU C++14 | TESTS | 39 | 31 | 614400 | ||
143728618 | 980798778 | B | Jan. 23, 2022, 2:53 a.m. | OK | GNU C++14 | TESTS | 40 | 31 | 1024000 | ||
143730679 | S00021 | B | Jan. 23, 2022, 3:40 a.m. | OK | GNU C++14 | TESTS | 40 | 31 | 2150400 | ||
143665573 | limanjun | B | Jan. 22, 2022, 3:21 p.m. | OK | GNU C++17 | TESTS | 39 | 30 | 0 | ||
143727668 | phuocchubeo | B | Jan. 23, 2022, 2:28 a.m. | OK | GNU C++17 | TESTS | 40 | 30 | 2457600 | ||
143674779 | Kuku | B | Jan. 22, 2022, 3:39 p.m. | OK | GNU C++17 | TESTS | 39 | 30 | 2457600 | ||
143716581 | oneluckyday | B | Jan. 22, 2022, 8:08 p.m. | OK | GNU C++17 | TESTS | 40 | 31 | 0 | ||
143665145 | Caffeinus | B | Jan. 22, 2022, 3:20 p.m. | OK | GNU C++17 | TESTS | 39 | 31 | 0 | ||
143655474 | satori_____ | B | Jan. 22, 2022, 3:04 p.m. | OK | GNU C++17 | TESTS | 39 | 31 | 102400 | ||
143667134 | ta4p | B | Jan. 22, 2022, 3:24 p.m. | OK | GNU C++17 | TESTS | 39 | 31 | 102400 | ||
143650186 | lucaperju | B | Jan. 22, 2022, 2:57 p.m. | OK | GNU C++17 | TESTS | 39 | 31 | 102400 | ||
143653672 | ynsm | B | Jan. 22, 2022, 3:01 p.m. | OK | GNU C++17 | TESTS | 39 | 31 | 204800 | ||
143659227 | fischerman | B | Jan. 22, 2022, 3:09 p.m. | OK | GNU C++17 | TESTS | 39 | 31 | 307200 | ||
143648641 | QAQAutoMaton | B | Jan. 22, 2022, 2:55 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 15 | 5120000 | ||
143703132 | wyyxhjth | B | Jan. 22, 2022, 5:28 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 30 | 0 | ||
143664551 | BlackAnt | B | Jan. 22, 2022, 3:19 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 30 | 0 | ||
143725050 | Xellos | B | Jan. 23, 2022, 12:58 a.m. | OK | GNU C++17 (64) | TESTS | 40 | 30 | 102400 | ||
143720663 | ecnerwala | B | Jan. 22, 2022, 9:51 p.m. | OK | GNU C++17 (64) | TESTS | 40 | 31 | 0 | ||
143706565 | Graphter | B | Jan. 22, 2022, 5:51 p.m. | OK | GNU C++17 (64) | TESTS | 40 | 31 | 0 | ||
143722161 | liyh | B | Jan. 22, 2022, 10:46 p.m. | OK | GNU C++17 (64) | TESTS | 40 | 31 | 3174400 | ||
143659884 | shino16 | B | Jan. 22, 2022, 3:11 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 31 | 3276800 | ||
143731621 | wondol | B | Jan. 23, 2022, 3:58 a.m. | OK | GNU C++17 (64) | TESTS | 40 | 31 | 3276800 | ||
143696105 | Younger_Giang | B | Jan. 22, 2022, 4:27 p.m. | OK | GNU C++17 (64) | TESTS | 39 | 31 | 3276800 | ||
143724125 | BalintR | B | Jan. 23, 2022, 12:18 a.m. | OK | GNU C++20 (64) | TESTS | 40 | 15 | 0 | ||
143672175 | ajpiano | B | Jan. 22, 2022, 3:33 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 31 | 0 | ||
143706737 | ScarletS | B | Jan. 22, 2022, 5:52 p.m. | OK | GNU C++20 (64) | TESTS | 40 | 31 | 0 | ||
143666413 | Mazaalai | B | Jan. 22, 2022, 3:22 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 31 | 0 | ||
143664333 | lyfzxy1314 | B | Jan. 22, 2022, 3:18 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 31 | 102400 | ||
143661128 | askd | B | Jan. 22, 2022, 3:13 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 31 | 102400 | ||
143653102 | tfg | B | Jan. 22, 2022, 3 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 31 | 409600 | ||
143661081 | greencis | B | Jan. 22, 2022, 3:13 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 31 | 1433600 | ||
143670637 | tloinuy | B | Jan. 22, 2022, 3:30 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 31 | 3174400 | ||
143674262 | tiagoshibata | B | Jan. 22, 2022, 3:38 p.m. | OK | GNU C++20 (64) | TESTS | 39 | 31 | 3174400 | ||
143702752 | clyring | B | Jan. 22, 2022, 5:26 p.m. | OK | Haskell | TESTS | 39 | 171 | 4198400 | ||
143666878 | knightL | B | Jan. 22, 2022, 3:23 p.m. | OK | Java 11 | TESTS | 39 | 202 | 0 | ||
143666173 | derrick20 | B | Jan. 22, 2022, 3:22 p.m. | OK | Java 11 | TESTS | 39 | 218 | 0 | ||
143671399 | martins | B | Jan. 22, 2022, 3:32 p.m. | OK | Java 11 | TESTS | 39 | 248 | 5529600 | ||
143716303 | gurkaran_s | B | Jan. 22, 2022, 8:02 p.m. | OK | Java 11 | TESTS | 40 | 249 | 6041600 | ||
143677056 | robinz62 | B | Jan. 22, 2022, 3:43 p.m. | OK | Java 11 | TESTS | 39 | 265 | 0 | ||
143657865 | earl_of_byteland | B | Jan. 22, 2022, 3:07 p.m. | OK | Java 11 | TESTS | 39 | 280 | 204800 | ||
143724411 | CCS_Covenant | B | Jan. 23, 2022, 12:31 a.m. | OK | Java 11 | TESTS | 40 | 311 | 819200 | ||
143658603 | saptarshi1729 | B | Jan. 22, 2022, 3:08 p.m. | OK | Java 11 | TESTS | 39 | 311 | 37580800 | ||
143704600 | Ste | B | Jan. 22, 2022, 5:36 p.m. | OK | Java 11 | TESTS | 39 | 358 | 102400 | ||
143657959 | Witless_Deer | B | Jan. 22, 2022, 3:07 p.m. | OK | Java 11 | TESTS | 39 | 499 | 1126400 | ||
143660067 | golions | B | Jan. 22, 2022, 3:11 p.m. | OK | Java 8 | TESTS | 39 | 140 | 0 | ||
143655596 | iakovlev.zakhar | B | Jan. 22, 2022, 3:04 p.m. | OK | Java 8 | TESTS | 39 | 155 | 0 | ||
143714555 | fetetriste | B | Jan. 22, 2022, 7:31 p.m. | OK | Java 8 | TESTS | 40 | 155 | 0 | ||
143709402 | beroul | B | Jan. 22, 2022, 6:19 p.m. | OK | Java 8 | TESTS | 40 | 156 | 0 | ||
143655743 | SecondThread | B | Jan. 22, 2022, 3:04 p.m. | OK | Java 8 | TESTS | 39 | 156 | 39014400 | ||
143724514 | Karakurik | B | Jan. 23, 2022, 12:36 a.m. | OK | Java 8 | TESTS | 40 | 170 | 0 | ||
143683194 | MagentaCobra | B | Jan. 22, 2022, 3:56 p.m. | OK | Java 8 | TESTS | 39 | 171 | 0 | ||
143716279 | karan_ak1 | B | Jan. 22, 2022, 8:01 p.m. | OK | Java 8 | TESTS | 40 | 171 | 4812800 | ||
143724531 | Karakurik | B | Jan. 23, 2022, 12:37 a.m. | OK | Java 8 | TESTS | 40 | 187 | 0 | ||
143704690 | vgrechko | B | Jan. 22, 2022, 5:36 p.m. | OK | Java 8 | TESTS | 39 | 187 | 0 | ||
143657784 | arvindf232 | B | Jan. 22, 2022, 3:07 p.m. | OK | Kotlin 1.4 | TESTS | 39 | 186 | 307200 | ||
143665371 | Hakiobo | B | Jan. 22, 2022, 3:20 p.m. | OK | Kotlin 1.4 | TESTS | 39 | 1231 | 7168000 | ||
143686922 | GeKa | B | Jan. 22, 2022, 4:05 p.m. | OK | MS C++ 2017 | TESTS | 39 | 93 | 2457600 | ||
143668871 | mban259 | B | Jan. 22, 2022, 3:27 p.m. | OK | .NET Core C# | TESTS | 39 | 109 | 7475200 | ||
143682181 | Andybar | B | Jan. 22, 2022, 3:54 p.m. | OK | .NET Core C# | TESTS | 39 | 140 | 2969600 | ||
143667577 | NecroSean38 | B | Jan. 22, 2022, 3:24 p.m. | OK | PyPy 3 | TESTS | 39 | 124 | 6348800 | ||
143654106 | whatshisbucket | B | Jan. 22, 2022, 3:02 p.m. | OK | PyPy 3 | TESTS | 39 | 171 | 8908800 | ||
143677929 | akhan42 | B | Jan. 22, 2022, 3:45 p.m. | OK | PyPy 3 | TESTS | 39 | 186 | 7372800 | ||
143709566 | anupam_sudh | B | Jan. 22, 2022, 6:20 p.m. | OK | PyPy 3 | TESTS | 40 | 186 | 7782400 | ||
143659205 | codicon | B | Jan. 22, 2022, 3:09 p.m. | OK | PyPy 3 | TESTS | 39 | 202 | 9113600 | ||
143672343 | SPD_9X2 | B | Jan. 22, 2022, 3:34 p.m. | OK | PyPy 3 | TESTS | 39 | 233 | 9318400 | ||
143656568 | titia | B | Jan. 22, 2022, 3:05 p.m. | OK | PyPy 3 | TESTS | 39 | 265 | 10444800 | ||
143657427 | MathisHammel | B | Jan. 22, 2022, 3:07 p.m. | OK | PyPy 3 | TESTS | 39 | 904 | 10342400 | ||
143739345 | student_for_a_teacher | B | Jan. 23, 2022, 5:52 a.m. | OK | PyPy 3 | TESTS | 40 | 1216 | 11161600 | ||
143685458 | shotoyoo | B | Jan. 22, 2022, 4:01 p.m. | OK | PyPy 3-64 | TESTS | 39 | 155 | 9523200 | ||
143642693 | manish.17 | B | Jan. 22, 2022, 2:48 p.m. | OK | PyPy 3-64 | TESTS | 39 | 202 | 11776000 | ||
143715227 | oadey89 | B | Jan. 22, 2022, 7:42 p.m. | OK | PyPy 3-64 | TESTS | 40 | 295 | 14233600 | ||
143722238 | qqrules | B | Jan. 22, 2022, 10:49 p.m. | OK | PyPy 3-64 | TESTS | 40 | 296 | 36659200 | ||
143670517 | huikang | B | Jan. 22, 2022, 3:30 p.m. | OK | PyPy 3-64 | TESTS | 39 | 561 | 20684800 | ||
143665359 | chinerist | B | Jan. 22, 2022, 3:20 p.m. | OK | PyPy 3-64 | TESTS | 39 | 592 | 17100800 | ||
143656567 | Slamur | B | Jan. 22, 2022, 3:05 p.m. | OK | PyPy 3-64 | TESTS | 39 | 748 | 10854400 | ||
143659354 | Mathematician2000 | B | Jan. 22, 2022, 3:10 p.m. | OK | PyPy 3-64 | TESTS | 39 | 779 | 10956800 | ||
143719601 | g.sumit | B | Jan. 22, 2022, 9:20 p.m. | OK | PyPy 3-64 | TESTS | 40 | 904 | 14336000 | ||
143669835 | Jimanbanashi | B | Jan. 22, 2022, 3:29 p.m. | OK | Python 2 | TESTS | 39 | 139 | 3891200 | ||
143712386 | OLOGY | B | Jan. 22, 2022, 6:57 p.m. | OK | Python 2 | TESTS | 40 | 139 | 4096000 | ||
143667990 | r57shell | B | Jan. 22, 2022, 3:25 p.m. | OK | Python 3 | TESTS | 39 | 171 | 819200 | ||
143682502 | 700YKSEULB | B | Jan. 22, 2022, 3:55 p.m. | OK | Python 3 | TESTS | 39 | 218 | 4403200 | ||
143665208 | kingmoshe | B | Jan. 22, 2022, 3:20 p.m. | OK | Python 3 | TESTS | 39 | 249 | 4403200 | ||
143713854 | NS3081992 | B | Jan. 22, 2022, 7:19 p.m. | OK | Python 3 | TESTS | 40 | 265 | 5427200 | ||
143652679 | Egor | B | Jan. 22, 2022, 3 p.m. | OK | Rust 2021 | TESTS | 39 | 46 | 5222400 | ||
143644542 | qwerty787788 | B | Jan. 22, 2022, 2:50 p.m. | OK | Rust 2021 | TESTS | 39 | 61 | 4505600 | ||
143649029 | sansen | B | Jan. 22, 2022, 2:55 p.m. | OK | Rust 2021 | TESTS | 39 | 62 | 6963200 | ||
143706002 | kobae964 | B | Jan. 22, 2022, 5:46 p.m. | OK | Rust 2021 | TESTS | 39 | 77 | 6348800 | ||
143651787 | kobae964 | B | Jan. 22, 2022, 2:59 p.m. | OK | Rust 2021 | TESTS | 39 | 77 | 6553600 |
Back to search problems