版本比较
题解:P13374 [GCJ 2011 #2] Airport Walkways
正文
增加 3 行删除 3 行
39 行未改动4041424344444546464748495050515253547 行未改动39 行未改动 double total_time = 0.0; for (int i = 0; i < N; ++i) { int length = walkways[i].E - walkways[i].B; double w = walkways[i].w;
if (rem_run_time > 0) { double run_time_p = min(rem_run_time, double run_time_p = min(rem_run_time, (double)length / (R + w)); double run_d = run_time_p * (R + w); double walk_d = length - run_d;
total_time += run_time_p + walk_d / (S + w); rem_run_time -= run_time_p; } else { total_time += (double)length / (S + w);7 行未改动