仅十分!求助大佬!!
查看原帖
仅十分!求助大佬!!
399062
星宿未泯楼主2021/1/9 18:27

是我理解错了吗?

#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;
}
2021/1/9 18:27
加载中...