个人记录我的做题总结第4题https://vjudge.net/contest/668687#problem/D 题解 ... #include <bits/stdc++.h> using namespace std; long long s[300005],a[300005]; long long…