847H - Load Testing 思路:dp. 代码: #include<bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mem(a,b) memset(a,b,sizeof(a) ; ll dp[N]={}; ll dp1[N]={}; ll a[N]; ll t[N]={}; ll t1[N]={}; int main() { ios::sync_with_st…