是我理解错了吗?
#include<cstdio> using namespace std; int main() { double s=2,v=2,x,t=1; scanf("%lf",&x); while(s<x) { t++; s+=0.98*v; } printf("%0.0lf",t); return 0; }