Collinearity (ABC181C)

AtCoder ABC181 C (https://atcoder.jp/contests/abc181/tasks/abc181_c): Given n distinct points with integer coordinates in the plane, determine whether any three distinct points lie on one straight line. Return true if such a triple exists and false otherwise. The input is an array of coordinate pairs points[i] = [x_i, y_i].

Examples
Input: [1,2,3]
Output: 0
Hints

Collinearity (ABC181C)

AtCoder ABC181 C (https://atcoder.jp/contests/abc181/tasks/abc181_c): Given `n` distinct points with integer coordinates in the plane, determine whether any three distinct points lie on one straight line. Return `true` if such a triple exists and `false` otherwise. The input is an array of coordinate pairs `points[i] = [x_i, y_i]`.