#include #define PI 3.14159265359 using namespace std; const int64_t mod = 1e9 + 7; int main() { int N; cin >> N; vector X(N); vector Y(N); for (int i = 0; i < N; i++) { cin >> X.at(i) >> Y.at(i); } int max = 2; for (int i = 0; i < N; i++) { for (int j = i+1; j < N; j++) { int dx, dy; dx = X.at(i) - X.at(j); dy = Y.at(i) - Y.at(j); int cnt = 0; for (int k = 0; k < N; k++) { int dx2, dy2; dx2 = X.at(i) - X.at(k); dy2 = Y.at(i) - Y.at(k); if (dy * dx2 == dy2 * dx) cnt++; } if (max < cnt) max = cnt; } } cout << max << endl; }