80求调
查看原帖
80求调
741120
_O__o_楼主2024/8/23 20:50
#include<bits/stdc++.h>

using namespace std;

signed main(){
	int x;
	cin>>x;
	if(x>=90)cout<<fixed<<setprecision(1)<<4.0;
	else if(x>=60&&x<=89)cout<<fixed<<setprecision(1)<<double(4.0-(90.0-x*1.0)*0.1);
	else{
		int g;
		g = double(sqrt(x)*10.0);
		if(g<=60)cout<<fixed<<setprecision(1)<<0.0;
		else {
			cout<<fixed<<setprecision(1)<<double(4.0-(90.0-x*1.0)*0.1);
		}
	}

	return 0;
}

2024/8/23 20:50
加载中...