Phineas and Flies
CodeChefOpen on judge ↗
Ferb has gone to visit the dentist so Phineas is now alone at home. But as usual he was thinking what he can do for the day. He was just looking at the sky through the window but unfortunately some flies have settled on the window and are obstructing his view. Phineas immediately hurried to get his square racket for killing flies. At the same time, he wondered how many flies it is possible to kill
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