40分求助
查看原帖
40分求助
579144
Qingying_F_Chana楼主2022/6/16 22:44
#include<iostream>
using namespace std;
int main(){
	float s,x;
	cin>>s>>x;
	x/=2;
	float t=1;
	while(s<=x){
		s-=t;
		t*=0.98;
	}
	t*=0.98;
	if(s+t>x)
		cout<<'n';
	else
		cout<<'y';
	return 0;
}
2022/6/16 22:44
加载中...