Codeforces_820】的更多相关文章

A.直接模拟. #include<bits/stdc++.h> using namespace std; int c,v0,v1,a,l; int main() { ios::sync_with_stdio(); cin >> c >> v0 >> v1 >> a >> l; ,now = l,v = v0-a; ) { ans++; now -= l; v += a; if(v > v1) v = v1; now += v;…