Codeforces 965 D. Single-use Stones(思维)

[Codeforces 965 D. Single-use Stones](http://codeforces.com/problemset/problem/965/D) 题目大意: 有一条河宽度为w,河上有一些石头,给出一组数(编号1~w-1),其中a[i]代表与河一岸距离为i的石头数量。每只青蛙的跳跃距离为l(l #include #include #include using namespace std; const int maxn=1e5+10; long long pre[maxn]; int main() { int i,n,l; long long ans=LLONG_MAX; cin>>n>>l; for (i=1;i
原文地址:https://www.cnblogs.com/orangee/p/9061628.html