Good Bye 2020

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
1466 Good Bye 2020 FINISHED False 10800 127841063 Dec. 30, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17835 ) C Canine poetry PROGRAMMING dp greedy strings

B"After his wife's tragic death, Eurydice, Orpheus descended to the realm of death to see her. Reaching its gates was uneasy, but passing through them proved to be even more challenging. Mostly because of Cerberus, the three-headed hound of Hades. Orpheus, a famous poet, and musician plans to calm Cerberus with his poetry and safely walk past him. He created a very peculiar poem for Cerberus. It consists only of lowercase English letters. We call a poem's substring a palindrome if and only if it reads the same backwards and forwards. A string a is a substring of a string b if a can be obtained from b by deleting several (possibly zero or all) characters from the beginning and several (possibly zero or all) characters from the end. Unfortunately, Cerberus dislikes palindromes of length greater than 1 . For example in the poem abaa the hound of Hades wouldn't like substrings aba and aa. Orpheus can only calm Cerberus if the hound likes his poetry. That's why he wants to change his poem so that it does not contain any palindrome substrings of length greater than 1 . Orpheus can modify the poem by replacing a letter at any position with any lowercase English letter. He can use this operation arbitrarily many times (possibly zero). Since there can be many palindromes in his poem, he may have to make some corrections. But how many, exactly? Given the poem, determine the minimal number of letters that have to be changed so that the poem does not contain any palindromes of length greater than 1 . The first line of the input contains a single integer t ( 1 <= q t <= q 10^5 ) denoting the number of test cases, then t test cases follow. The first and only line of each test case contains a non-empty string of lowercase English letters, Orpheus' poem. The sum of the length of Orpheus' poems in all test cases will not exceed 10^5 . You should output t lines, i -th line should contain a single integer"...

Tutorials

Good Bye 2020 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
102865739 ruban C Dec. 30, 2020, 8:21 p.m. OK Delphi TESTS 40 748 26112000
102885323 dAd0qbu C Dec. 31, 2020, 6 a.m. OK FPC TESTS 40 311 1126400
102866032 ruban C Dec. 30, 2020, 8:25 p.m. OK FPC TESTS 40 326 26931200
102855563 ntat000 C Dec. 30, 2020, 5:24 p.m. OK FPC TESTS 40 327 1126400
102850561 zeba2002 C Dec. 30, 2020, 5:07 p.m. OK GNU C11 TESTS 40 358 102400
102875694 C111111 C Dec. 31, 2020, 2:08 a.m. OK GNU C11 TESTS 40 592 102400
102872313 xietianyi C Dec. 30, 2020, 11:29 p.m. OK GNU C++11 TESTS 40 31 0
102872229 xietianyi C Dec. 30, 2020, 11:25 p.m. OK GNU C++11 TESTS 40 31 0
102873278 william555 C Dec. 31, 2020, 12:13 a.m. OK GNU C++11 TESTS 40 31 102400
102880673 Dreamfarer C Dec. 31, 2020, 4:33 a.m. OK GNU C++11 TESTS 40 31 102400
102850491 ERUIHNIYHBKBNF C Dec. 30, 2020, 5:06 p.m. OK GNU C++11 TESTS 40 31 102400
102874648 Eric_hooo C Dec. 31, 2020, 1:20 a.m. OK GNU C++11 TESTS 40 31 1740800
102873358 kimyon C Dec. 31, 2020, 12:17 a.m. OK GNU C++11 TESTS 40 31 3276800
102874522 ITmouse C Dec. 31, 2020, 1:14 a.m. OK GNU C++11 TESTS 40 31 3276800
102876237 lqx123123 C Dec. 31, 2020, 2:31 a.m. OK GNU C++11 TESTS 40 46 0
102884642 hellomath C Dec. 31, 2020, 5:49 a.m. OK GNU C++11 TESTS 40 46 102400
102883669 dr123 C Dec. 31, 2020, 5:32 a.m. OK GNU C++14 TESTS 40 31 307200
102883397 Austere7 C Dec. 31, 2020, 5:27 a.m. OK GNU C++14 TESTS 40 31 307200
102883395 ayushkumar225 C Dec. 31, 2020, 5:27 a.m. OK GNU C++14 TESTS 40 31 307200
102883311 ravinder5341 C Dec. 31, 2020, 5:26 a.m. OK GNU C++14 TESTS 40 31 307200
102883994 codeTheworld3101 C Dec. 31, 2020, 5:37 a.m. OK GNU C++14 TESTS 40 31 307200
102882784 ronnny C Dec. 31, 2020, 5:16 a.m. OK GNU C++14 TESTS 40 31 307200
102882575 Rohit_Kul C Dec. 31, 2020, 5:12 a.m. OK GNU C++14 TESTS 40 31 307200
102882109 ayush_07 C Dec. 31, 2020, 5:04 a.m. OK GNU C++14 TESTS 40 31 307200
102883094 siddhant1 C Dec. 31, 2020, 5:22 a.m. OK GNU C++14 TESTS 40 31 307200
102883804 amit28amical C Dec. 31, 2020, 5:34 a.m. OK GNU C++14 TESTS 40 31 307200
102848310 intmian C Dec. 30, 2020, 4:59 p.m. OK GNU C++17 TESTS 40 31 102400
102879937 LarryNY C Dec. 31, 2020, 4:15 a.m. OK GNU C++17 TESTS 40 31 102400
102877219 chiabhoward C Dec. 31, 2020, 3:04 a.m. OK GNU C++17 TESTS 40 31 102400
102873291 200815147 C Dec. 31, 2020, 12:14 a.m. OK GNU C++17 TESTS 40 31 102400
102873097 kroc44 C Dec. 31, 2020, 12:05 a.m. OK GNU C++17 TESTS 40 31 102400
102862623 aman_464 C Dec. 30, 2020, 7:40 p.m. OK GNU C++17 TESTS 40 31 102400
102851040 dreamr C Dec. 30, 2020, 5:08 p.m. OK GNU C++17 TESTS 40 31 102400
102850088 Carlos_Aranda C Dec. 30, 2020, 5:05 p.m. OK GNU C++17 TESTS 40 31 102400
102862078 xb0nS C Dec. 30, 2020, 7:35 p.m. OK GNU C++17 TESTS 40 31 204800
102878316 Glydon C Dec. 31, 2020, 3:35 a.m. OK GNU C++17 TESTS 40 31 204800
102866224 sirearsh C Dec. 30, 2020, 8:29 p.m. OK GNU C++17 (64) TESTS 40 31 102400
102881403 RioTian C Dec. 31, 2020, 4:49 a.m. OK GNU C++17 (64) TESTS 40 31 204800
102882322 kshittiz21 C Dec. 31, 2020, 5:07 a.m. OK GNU C++17 (64) TESTS 40 31 307200
102881681 dhiraj-01 C Dec. 31, 2020, 4:54 a.m. OK GNU C++17 (64) TESTS 40 31 307200
102880528 6aren C Dec. 31, 2020, 4:30 a.m. OK GNU C++17 (64) TESTS 40 31 307200
102878296 sva2005 C Dec. 31, 2020, 3:34 a.m. OK GNU C++17 (64) TESTS 40 31 307200
102879365 wingsYouAretheHero C Dec. 31, 2020, 4:01 a.m. OK GNU C++17 (64) TESTS 40 31 307200
102884396 raviparmar2002 C Dec. 31, 2020, 5:44 a.m. OK GNU C++17 (64) TESTS 40 31 307200
102884225 pseuda C Dec. 31, 2020, 5:42 a.m. OK GNU C++17 (64) TESTS 40 31 307200
102883209 selena_gomez_lover C Dec. 31, 2020, 5:24 a.m. OK GNU C++17 (64) TESTS 40 31 307200
102849278 ruyvallem C Dec. 30, 2020, 5:02 p.m. OK Go TESTS 40 1138 4505600
102880893 sumitchavan C Dec. 31, 2020, 4:38 a.m. OK Java 11 TESTS 40 187 0
102873407 AnythingWithJ C Dec. 31, 2020, 12:20 a.m. OK Java 11 TESTS 40 187 0
102864315 MahmoudJobeel C Dec. 30, 2020, 8:01 p.m. OK Java 11 TESTS 40 187 0
102864221 Okhair C Dec. 30, 2020, 8 p.m. OK Java 11 TESTS 40 187 0
102885089 Sanju_250406 C Dec. 31, 2020, 5:56 a.m. OK Java 11 TESTS 40 202 0
102881919 bishal141119 C Dec. 31, 2020, 5 a.m. OK Java 11 TESTS 40 202 0
102877890 Yuxiang C Dec. 31, 2020, 3:24 a.m. OK Java 11 TESTS 40 202 0
102865702 Mhmmd.itani C Dec. 30, 2020, 8:20 p.m. OK Java 11 TESTS 40 202 0
102861943 Bhaskar13 C Dec. 30, 2020, 7:35 p.m. OK Java 11 TESTS 40 202 0
102849033 coderrohan14 C Dec. 30, 2020, 5:01 p.m. OK Java 11 TESTS 40 202 0
102863669 shrashtiK C Dec. 30, 2020, 7:53 p.m. OK Java 8 TESTS 40 109 0
102884067 sushant-kun C Dec. 31, 2020, 5:39 a.m. OK Java 8 TESTS 40 124 0
102865736 O-infinity C Dec. 30, 2020, 8:21 p.m. OK Java 8 TESTS 40 124 0
102865660 Uttam007 C Dec. 30, 2020, 8:19 p.m. OK Java 8 TESTS 40 124 0
102864200 Mercurrial C Dec. 30, 2020, 7:59 p.m. OK Java 8 TESTS 40 124 0
102863488 nandit C Dec. 30, 2020, 7:51 p.m. OK Java 8 TESTS 40 124 0
102863359 rachitpts.2454 C Dec. 30, 2020, 7:50 p.m. OK Java 8 TESTS 40 124 0
102863336 tanmayks1999.ts C Dec. 30, 2020, 7:49 p.m. OK Java 8 TESTS 40 124 0
102862905 honeysingh18 C Dec. 30, 2020, 7:44 p.m. OK Java 8 TESTS 40 124 0
102862365 hassanU C Dec. 30, 2020, 7:37 p.m. OK Java 8 TESTS 40 124 0
102873296 Rakki_26 C Dec. 31, 2020, 12:14 a.m. OK JavaScript TESTS 40 93 3686400
102883973 ThinkingDobby C Dec. 31, 2020, 5:37 a.m. OK Kotlin TESTS 40 140 0
102873894 Spheniscine C Dec. 31, 2020, 12:43 a.m. OK Kotlin TESTS 40 140 0
102880837 pallav12 C Dec. 31, 2020, 4:37 a.m. OK Kotlin TESTS 40 732 0
102877749 dlehgns011 C Dec. 31, 2020, 3:20 a.m. OK MS C++ 2017 TESTS 40 46 307200
102870856 PrideBlack C Dec. 30, 2020, 10:32 p.m. OK MS C++ 2017 TESTS 40 62 204800
102848900 NoobMaster12 C Dec. 30, 2020, 5:01 p.m. OK MS C++ 2017 TESTS 40 93 102400
102878758 wu_sir C Dec. 31, 2020, 3:46 a.m. OK MS C++ 2017 TESTS 40 374 1024000
102852462 tbalint57 C Dec. 30, 2020, 5:14 p.m. OK MS C++ 2017 TESTS 40 389 204800
102850271 KseniaShk C Dec. 30, 2020, 5:06 p.m. OK MS C++ 2017 TESTS 40 389 614400
102865679 ustaritz C Dec. 30, 2020, 8:20 p.m. OK MS C++ 2017 TESTS 40 405 307200
102871485 Darooha C Dec. 30, 2020, 10:54 p.m. OK Ocaml TESTS 40 31 2355200
102866832 ap1008 C Dec. 30, 2020, 8:40 p.m. OK PyPy 2 TESTS 40 1497 2969600
102881495 sul3 C Dec. 31, 2020, 4:50 a.m. OK PyPy 3 TESTS 40 171 4300800
102880341 rajbit C Dec. 31, 2020, 4:25 a.m. OK PyPy 3 TESTS 40 202 3584000
102862153 gokufan1769 C Dec. 30, 2020, 7:36 p.m. OK PyPy 3 TESTS 40 218 5427200
102848874 Purota C Dec. 30, 2020, 5:01 p.m. OK PyPy 3 TESTS 40 233 8704000
102881405 dutt_shouvik C Dec. 31, 2020, 4:49 a.m. OK PyPy 3 TESTS 40 233 9011200
102869680 atg_coder27 C Dec. 30, 2020, 9:52 p.m. OK PyPy 3 TESTS 40 233 9011200
102862684 InvalidSyntax C Dec. 30, 2020, 7:41 p.m. OK PyPy 3 TESTS 40 233 9011200
102879625 codershuvo C Dec. 31, 2020, 4:07 a.m. OK PyPy 3 TESTS 40 248 9011200
102881395 sul3 C Dec. 31, 2020, 4:49 a.m. OK PyPy 3 TESTS 40 249 9011200
102862806 Camazotz C Dec. 30, 2020, 7:43 p.m. OK PyPy 3 TESTS 40 249 9113600
102875298 sudhirMTS C Dec. 31, 2020, 1:50 a.m. OK Python 3 TESTS 40 342 1126400
102878424 shiviDON C Dec. 31, 2020, 3:38 a.m. OK Python 3 TESTS 40 342 1228800
102881371 sul3 C Dec. 31, 2020, 4:48 a.m. OK Python 3 TESTS 40 374 614400
102852848 MCO C Dec. 30, 2020, 5:15 p.m. OK Python 3 TESTS 40 389 1945600
102866582 kindreon C Dec. 30, 2020, 8:35 p.m. OK Python 3 TESTS 40 795 921600
102868571 tunahhfishy C Dec. 30, 2020, 9:21 p.m. OK Python 3 TESTS 40 810 1433600
102885185 abhi.tiwari C Dec. 31, 2020, 5:58 a.m. OK Python 3 TESTS 40 826 921600
102872570 Gemini7 C Dec. 30, 2020, 11:41 p.m. OK Python 3 TESTS 40 826 921600
102877574 adarsh_19 C Dec. 31, 2020, 3:15 a.m. OK Python 3 TESTS 40 826 8806400
102881345 sul3 C Dec. 31, 2020, 4:48 a.m. OK Python 3 TESTS 40 841 614400
102870808 optozorax C Dec. 30, 2020, 10:30 p.m. OK Rust TESTS 40 46 512000
102863225 the_stone_dawg C Dec. 30, 2020, 7:48 p.m. OK Rust TESTS 40 888 1024000

remove filters

Back to search problems