← All problemsSign in

Flowers and Petals

Chef wants to give flowers to his girlfriend on Valentine's day. His girlfriend doesn't like flowers with an odd number of petals much. Chef decided to buy flowers from the nearby shop. In the shop, flowers are arranged in rows. Since it's Valentine's day, many flowers are already sold. Luckily there is one row of flowers left. In this row, there are $N$ number of flowers numbered $1$ through $

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