← All problemsSign in

Celestial Voyage

Since this year Ojass is celebrating celestial voyage to support the ongoing space missions. Aditya, a member of Planning and Development team decided to send some of the participants to the space (lucky ones :P). For this he has asked for a spaceship from ISRO. Now the spaceship has p rows from front to back. And a total of q lucky participants will get a chance to be in the spaceship. Spaceshi

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