为什么20分
查看原帖
为什么20分
1400450
wangshengchen楼主2024/9/15 21:34
#include<bits/stdc++.h>
using namespace std;
int main()
{
	double s,m=2;
	int cnt;
	cin>>s;
	while(m<s)
	{
		m+=m*0.98;
		cnt++;
	}
	cout<<cnt+1;
	return 0;
}
2024/9/15 21:34
加载中...