题解的第一篇,这一段:
bool cmp(ben p1,ben p2){
double tmp=check(p[1],p1,p[1],p2);
if(tmp>0)
return 1;
if(tmp==0&&d(p[0],p1)<d(p[0],p2))
return 1;
return 0;
}
我觉得因该是:
bool cmp(ben p1,ben p2){
double tmp=check(p[1],p1,p[1],p2);
if(tmp>0)
return 1;
if(tmp==0&&d(p[1],p1)<d(p[1],p2))
return 1;
return 0;
}
大佬能帮忙姐姐货吗?