求助
查看原帖
求助
346662
yezihao1楼主2021/1/4 19:11
#include<bits/stdc++.h>
using namespace std;
int main()
{
	float x;
	cin>>x;
	int s=0;
	while(x>=0)
	{
		float i=2;
		x-=i;
		s++;
		i*=0.98;
	}
	cout<<s;
	return 0;
	}

2021/1/4 19:11
加载中...