Good Poem
CodeChefOpen on judge ↗
Good Poem Thakur finally decided to tell a poem to his girlfriend on phone to impress her. But being a geeky coder, he thinks a good poem is one that only has a number containing digits 1 or 2 only. So only numbers like 112, 12222 forms a good poem and not 1134, 8222 etc. Now Thakur's girlfriend is also very meticulous about the poem. She has given some demands on the number Thakur is going to r
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