Summer and Morty
CodeChefOpen on judge ↗
*"Nobody exists on purpose. Nobody belongs anywhere. We're all going to die. Come watch TV Summer."* And Summer and Morty started watching TV, but they got bored very soon. So, they went to the Garage. In one of the Rick's drawer, they found a long strip of paper, which was divided into squares making a line of the squares. Each square was painted in either Red colour or Green colour and initia
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start