Countdown
CodeChefOpen on judge ↗
Tapan had bought a board to countdown to Pravega 2015. Pravega being a unique fest could not have an ordinary countdown. So he decided to write two numbers A and B on the board. Each day a new number is to be written on the board. The new number must not already be on the board and must be the absolute value of the difference of two distinct numbers already on the board. This is continued till it
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