20分 QAQ 求大佬指点
查看原帖
20分 QAQ 求大佬指点
1275875
whz0109楼主2024/6/2 15:56
#include <bits/stdc++.h>
using namespace std;
int main()
{
	double s,a=2,s1=2;
	int n=1;
	cin>>s;
	while(s1<s){
		n++;
		s1=s1+a*0.98;
}
	
	cout<<n<<endl;
	return 0;
}
2024/6/2 15:56
加载中...