#include #include #include #include using namespace std; const int N = 505; const int inf = 0x3f3f3f3f; struct Point{ int x,y; }A[N],B[N]; int n,m,mp[N][N]; int f(Point a,Point b,Point c){ int x1 = a.x,y1 = a.y,x2 = b.x,y2 = b.y,x3 = c.x,y3 = c.y; return (x1 - x3) * (y2 - y3) - (y1 - y3) * (x2 - x3); } //在线段中间返回false,否则返回true bool check (Point a,Point b,Point c)//a是否不在b,c的中间 { if (a.x>b.x&&a.x>c.x) return true; if (a.xb.y&&a.y>c.y) return true; if (a.y m) puts("ToT"); else printf("%d\n",m - ans); } return 0; }