// #define _GLIBCXX_DEBUG #include using namespace std; #include using namespace atcoder; using ll = long long; #define rep(i,n) for (ll i = 0; i < (n); ++i) using vl = vector; using vvl = vector; using P = pair; #define pb push_back #define int long long #define double long double #define INF (ll) 3e18 // Ctrl + Shift + B コンパイル // Ctrl + C 中断 // ./m 実行 signed main(){ int n; cin >> n; vector

xy(n); rep(i,n) cin >> xy[i].first >> xy[i].second; int ans = 0; for(auto [nx, ny] : xy){ set

st; for(auto [x, y] : xy){ x -= nx; y -= ny; if (x == 0 && y == 0) continue; if (x == 0) { st.emplace(0, y/abs(y)); continue; } if (y == 0){ st.emplace(x/abs(x), 0); continue; } int g = gcd(x, y); x /= g; y /= g; st.emplace(x, y); } if (st.size() != n-1) ans++; } cout << ans << endl; } // 自身を原点として、各ダンサーへのベクトルを取得し、 // 同じベクトルのダンサーが二人居れば不幸。