Vicky For Vendetta
CodeChefOpen on judge ↗
Revenge is once again high on the mind of obnoxious Vicky. Vicky is chasing N of his friends including Abhishek, Atishay, Ankit and Abhijeet who he thinks have stolen his candy. The ith friend is at ( xi, yi ) at t = 0 and is moving with a constant velocity of ( vxi, vyi ), such that the ith friend is at ( xi + vxi, yi + vyi) at t = 1 and at ( xi + 2*vxi, yi + 2*vyi ) and so on. Vicky himself is a
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