View Code
/*
* 利用叉乘判断拐向
* auther:Try86
*/#include
#include
struct point {int x;int y;
}A, B, C;int crossProd(point A, point B, point C) {return (B.x-A.x)*(C.y-A.y) - (B.y-A.y)*(C.x-A.x);
}int main() {int n;while (scanf("%d", &n), n) {scanf ("%d%d%d%d%d%d", &A.x, &A.y, &B.x, &B.y, &C.x, &C.y);int dir, k = 0;for (int i=2; i
}