double x1,y1,x2,y2,x3,y3,firetome,hometome,firetohome;
cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
firetome = sqrt((y3-y1)*(y3-y1)+(x3-x1)*(x3-x1));
hometome = sqrt((y2-y1)*(y2-y1)+(x2-x1)*(x2-x1));
if (firetome < hometome){
cout << "該死的東西!竟敢想讓我死!\n";
}
else
cout << "父親大人!母親大人!我快到了!\n";
上面測資給的有過
但是送出去的沒過...
double x1,y1,x2,y2,x3,y3,firetome,hometome,firetohome;
cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
firetome = sqrt((y3-y1)*(y3-y1)+(x3-x1)*(x3-x1));
hometome = sqrt((y2-y1)*(y2-y1)+(x2-x1)*(x2-x1));
if (firetome < hometome){
cout << "該死的東西!竟敢想讓我死!\n";
}
else
cout << "父親大人!母親大人!我快到了!\n";
上面測資給的有過
但是送出去的沒過...