没用到gcd,就过了,是不是数据有点拉。。。
define _CRT_SECURE_NO_WARNINGS
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
define cin(x) scanf(“%d”, &x)
const int N = 1e3 + 10, INF = 1e9 +10;
multiset[HTML_REMOVED] S;
double x_0, y_0;
int n;
double k;
int main() {
cin >> n >> x_0 >> y_0;
int cnt = 0;
for (int i = 0; i < n; i) {
double a, b;
scanf(“%lf%lf”, &a, &b);
if(a == x_0){
k = INF;
}
else
k = (y_0 - b) / (x_0 - a);
auto it = S.find(k);
if (it == S.end()) {
S.insert(k);
cnt;
}
}
cout << cnt;
return 0;
}
```