package main import "fmt" func main() { var N int fmt.Scan(&N) X := make([]float64, N) Y := make([]float64, N) for i := 0; i < N; i++ { fmt.Scan(&X[i], &Y[i]) } var count int var max int for i := 0; i < N; i++ { for j := i + 1; j < N; j++ { count = 0 for k := 0; k < N; k++ { if (X[j]-X[i])*(Y[k]-Y[i]) == (Y[j]-Y[i])*(X[k]-X[i]) { count++ } } if max < count { max = count } } } fmt.Println(max) }