疯了。。。
依旧超长变量名(先不管对不对)
#include<iostream>
using namespace std;
int main(){
double s, c, l, p0;
int n;
cin>>s>>c>>l>>p0>>n;
vector<pair<int, int>> a(n+1);
a[0].second=p0;
for(int i=1; i<=n; i++){
cin>>a[i].first;
}
for(int i=1; i<=n; i++){
cin>>a[i].second;
}
sort(a.begin(), a.end(), [](pair<int, int> a, pair<int, int> b){
if(a.first==b.first) return a.second<b.second;
return a.first<b.first;
});
int now=0, ret=0;
for(int i=0; i<n; i++){
double distance_to_next_gas_station=a[i+1].first-a[i].first;
double need_gas_liqiud_capacity=distance_to_next_gas_station*l;
if(need_gas_liqiud_capacity<=now){
now-=need_gas_liqiud_capacity;
continue;
}
double the_maximum_theoretical_distance_that_the_current_vehicle_can_sustain_travelling_in_a_straight_line_before_the_total_depletion_of_its_internal_fuel_reservoir_based_on_the_conversion_factor_of_fuel_liquid_volume_per_kilometer_under_current_constant_environmental_and_engine_conditions=now/l;
double the_mathematical_discrepancy_calculated_by_subtracting_the_remaining_fuel_liquidity_currently_held_inside_the_vehicle_s_internal_combustion_engine_reservoir_from_the_total_amount_of_liquid_gasoline_units_required_to_successfully_traverse_the_precise_distance_between_the_current_gas_station_and_the_subsequent_refueling_stop_measured_in_kilometers_during_the_active_simulation_session=(distance_to_next_gas_station-the_maximum_theoretical_distance_that_the_current_vehicle_can_sustain_travelling_in_a_straight_line_before_the_total_depletion_of_its_internal_fuel_reservoir_based_on_the_conversion_factor_of_fuel_liquid_volume_per_kilometer_under_current_constant_environmental_and_engine_conditions)*l;
double the_current_specific_gas_station_which_is_located_at_a_certain_distance_from_the_origin_that_offers_a_specific_type_of_fossil_fuel_whose_market_price_per_one_liter_can_allow_the_vehicle_to_travel_exactly_l_kilometers_as_determined_by_the_engine_efficiency_coefficient_in_the_current_session_of_the_simulation=a[i].second;
now+=the_mathematical_discrepancy_calculated_by_subtracting_the_remaining_fuel_liquidity_currently_held_inside_the_vehicle_s_internal_combustion_engine_reservoir_from_the_total_amount_of_liquid_gasoline_units_required_to_successfully_traverse_the_precise_distance_between_the_current_gas_station_and_the_subsequent_refueling_stop_measured_in_kilometers_during_the_active_simulation_session;
ret+=the_mathematical_discrepancy_calculated_by_subtracting_the_remaining_fuel_liquidity_currently_held_inside_the_vehicle_s_internal_combustion_engine_reservoir_from_the_total_amount_of_liquid_gasoline_units_required_to_successfully_traverse_the_precise_distance_between_the_current_gas_station_and_the_subsequent_refueling_stop_measured_in_kilometers_during_the_active_simulation_session*the_current_specific_gas_station_which_is_located_at_a_certain_distance_from_the_origin_that_offers_a_specific_type_of_fossil_fuel_whose_market_price_per_one_liter_can_allow_the_vehicle_to_travel_exactly_l_kilometers_as_determined_by_the_engine_efficiency_coefficient_in_the_current_session_of_the_simulation;
}
cout<<ret;
return 0;
}