Dinosaurs Football
CodeChefOpen on judge ↗
Chef Ada is the FootBall coach of the Dinosaurs Institute of Technology. There are $N$ dinosaurs (enumerated $1$ through $N$) placed in a line. The i-th dinosaur has a height of $i$ meters. Ada is training The dinosaurs in the following tactic: - Initially the leftmost dinosaur has the ball. - The dinosaur that has the ball passes the ball to the nearest dinosaur to the right that is tal
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