← All problemsSign in

Joey and his friends

Joey is very good friend of Ross & Monica. Joey loves his friends so much. On the eve of New Year, They invited Joey for a party. He plans to go for party and give some beautiful flowers to everyone there in party. Unfortunately, He don’t have enough money to buy flowers, but as today is a New Year eve, every shop is giving free roses. He decides to take advantage. Well, there are N shops on t

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