题解:
#include<bits/stdc++.h>
using namespace std;
int main(){
int x1,y1,x2,y2,n,ans = 0;
cin>>x1>>y1>>x2>>y2;
cin>>n;
double k = (y1-y2)/(x1-x2);
while(n--){
int a,b;
cin>>a>>b;
double text = (y1 - b)/(x1 - a);
if(k == text) ans++;
}
cout<<ans<<endl;
}