思路:
我们考虑直角三角形的性质
一条直角边转90°的斜率等于另一条直角边的斜率
那我们就可以枚举直角顶点,把每条边转90°的斜率用map存起来,最后统计一下就行了
c o d e code code
#include<iostream>
#include<cstdio>
#include<map>
using namespace std;
const int MAXN = 1510;
int n, sum;
map<pair<int, double>, int> q;
struct node {
int x, y;
}a[MAXN];
int main() {
scanf("%d", &n);
for(int i = 1; i <= n; i