[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),故要踩着石头到河的彼岸,且被踩过的石头将消失,问这条河最多可以让多少只青蛙过。>

相关文章:

  • 2022-12-23
  • 2021-12-27
  • 2021-10-16
  • 2021-11-20
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-09
  • 2021-06-07
  • 2021-11-09
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案