Chef Birds
CodeChefOpen on judge ↗
In chef-world (The world where our chef is God and it consists of chef-sky, chef-earth, chef-birds and obviously the chef himself), there are $N$ chef-birds. All of them will start flying from $0^{th}$ second with the same speed in chef-sky, the $i^{th}$ bird has to visit the chef-earth at every ${a_i}^{th}$ second (at $a_i$, $2* a_i$, $3*a_i$, ....) during her life. On chef-earth, at any insta
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