版本比较
题解:P14914 「QFOI R3」航线交汇
正文
增加 4 行删除 4 行
59 行未改动606162636464656667686 行未改动757677787979808182838485868788888990919260 行未改动1531541551561571571581591601614 行未改动59 行未改动 if(p[i].v>=V)//追不上 cout<<"No\n"; else { double t = cha/(V-p[i].v); double t = cha/(V-p[i].v); if(t>1)//也是追不上 cout<<"No\n"; else // 能追上 cout<<BE+t*V<<endl;6 行未改动 double he = p[i].be-BE; double t = he/(p[i].v+V); if(t>1)//没有相遇 cout<<"No\n"; else else cout<<BE+t*V<<endl; } else if(BE>EN&&p[i].be<=p[i].en) //相遇不可能全程看见 { double he = BE-p[i].be; double t = he/(p[i].v+V); if(t>1)//没有相遇 cout<<"No\n"; else else cout<<BE-t*V<<endl; } else if(BE>EN&&p[i].be>p[i].en)//追及 {60 行未改动
2. 相遇问题,1号飞机为正方向
3. 相遇问题,1号飞机为反方向
4. 追及问题,1号飞机为反方向
---
4 行未改动