摘要:
1 #include <cstdio> 2 #include <iostream> 3 4 using namespace std; 5 6 struct point { 7 int x, y; 8 }A, B, C; 9 10 int crossProd(point A, point B, point C) {//叉乘 11 return (B.x - A.x) * (C.y - A.y) - (B.y - A.y) * (C.x - A.x);12 }13 14 int main() {15 while (1) {16 scanf ("%d%d... 阅读全文
摘要:
1 #include <cmath> 2 #include <cstdio> 3 #include <cstdlib> 4 #include <iostream> 5 6 using namespace std; 7 8 const int N = 105; 9 10 struct point {11 long long x, y;12 }p[N];13 14 long long dis(point A, point B) {//两点距离 15 return (long long)sqrt((A.x - B.x) * (A.x - B.x) + 阅读全文