Firework this Diwali !
CodeChefOpen on judge ↗
The festive season has just begun and Sandeep has started to prepare for the firework for Diwali. This time he has bought 'n' rockets. Being a budding programmer, he has devised an algorithm to fire the rockets. He places all the 'n' rockets in a single line, the leftmost and rightmost rockets are fired in the first shot. The time interval between two consecutive fires is 10 seconds. After 'k' sho
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