← All problemsSign in

A Story with Strings

CodeChefRating 2129Open on judge ↗

Lira and her best friend are now ending highschool and soon they both will head separate ways... Lira will obviously study Computer Science while her best friend will study Arts... (apparentely, opposites attract, alikes repel right?) However, as Lira didn't want to lose contact with her, she decided to mix Art and Computer Science one last time and amaze her friend with Computer Science, so she

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start