80怎么办?
查看原帖
80怎么办?
685824
shenyixuan123楼主2023/9/26 20:14

rt,第6个和第7个点错了,怎么办?

#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long x;
	cin>>x;
	if(x>=90) cout<<"4.0"<<endl;
	else if(x>=60) cout<<fixed<<setprecision(1)<<4.0-(90-x)*0.1<<endl;
	else 
	{
	    if(floor(sqrt(x)*10<60)) cout<<"0.0"<<endl;
	    else cout<<fixed<<setprecision(1)<<4.0-(90-x)*0.1<<endl;
	}
    return 0;
}
2023/9/26 20:14
加载中...