我手算的不能接住输出 0
rt
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main(){
int ans = 0;
double H,S1,V,L,K,n;
cin >> H >> S1 >> V >> L >> K >> n;
double H1 = H - K,t = sqrt(H1 / 5.0);
double x1 = S1 - t * V,x2 = x1 + L;
for(int i = n - 1; i >= 0; --i){
if(i >= x1 && i <= x2){
ans++;
}
}
cout << ans;
return 0;
}
求调