The Ultimate Weapon
CodeChefOpen on judge ↗
There are $M$ enemy troops on the ground. The battleground is similar to cartesian coordinate system. Each troop is given a coordinate $(x,y)$ on this system. Joseph has the latest tech to fight these troops - a duplex railgun. It is placed at the point ($x_0$,$y_0$). It takes only a single shot to destroy all the troops situated on some line that passes through ($x_0$,$y_0$). Find the minim
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