Points and Lines
CodeChefOpen on judge ↗
You are given N points on a 2D plane. You are also given an integer p. Your task is very simple. You need to find if there is a line that contains at least p % of the points. Input The first line of the input contains two integers N and p. Next N lines contain two space separated integers x and y representing the co-ordinates of the points. Output Output a single line containing YES if there i
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