摘要: //方程 dp[j]=min(dp[j],dp[i]+t+x/vt1+y/vt2);/*假设在第i个加油站充电,则到达第j个加油站的最优时间为dp[j].将终点设为最后一个加油站,起点设为第0个,特判起点。*/#include<cstdio>#include<cmath>#include<cstri 阅读全文
posted @ 2016-07-04 16:20 wwdf 阅读(195) 评论(0) 推荐(0) 编辑