#include #include #include structpss{doublex;doubley;};intmain(){structpssdb[4],ixs,temp,dta[2],*pt=db,*st=db+2;doub led[2];inti;for(i=0;i<4;i++)cin>>db[i].x>>db[i].y;for(i=0;i<2;i++){dta[i].x=db[1+i*2].x-d b[i*2].x;dta[i].y=db[1+i*2].y-db[i*2].y;}if((dta[0].y*dta[1].x-dta[1].y*dta[0].x)==0)cout <=pt[0].x&&ixs.x<=p t[1].x&&ixs.x>=st[0].x&&ixs.x<=st[1].x){if((d[0]=sqrt((st[0].x-pt[0].x)*(st[0].x-pt[0].x) +(st[0].y-pt[0].y)*(st[0].y-pt[0].y))+sqrt((st[0].x-pt[1].x)*(st[0].x-pt[1].x)+(st[0].y-p t[1].y)*(st[0].y-pt[1].y)))>(d[1]=sqrt((st[1].x-pt[0].x)*(st[1].x-pt[0].x)+(st[1].y-pt[0] .y)*(st[1].y-pt[0].y))+sqrt((st[1].x-pt[1].x)*(st[1].x-pt[1].x)+(st[1].y-pt[1].y)*(st[1]. y-pt[1].y)))){cout<<"d[1]"<