谁教教萌新,太难了!!!
查看原帖
谁教教萌新,太难了!!!
284521
queen_street楼主2020/8/11 21:28
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int i,ans=1;
	double n,k=2;
	cin>>n;
	while(k<n)
	{
		k=k+k*0.98;
		ans++;
	}
	cout<<ans;
	return 0;
}
2020/8/11 21:28
加载中...