← All problemsSign in

Chef and the line segments

Chef is standing at a point on a 2-D plane. He has m points around him. Let the j th point be at a distance k[ j ] (1Your task is to count the total number of points that have its distance from chef equal to any of the line segments. NOTE: Line segments should be exactly equal to the distance of points from chef. Input The first line of input contains a positive integer n, the number of sticks

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start