奇怪的60分
查看原帖
奇怪的60分
916579
GoodLuckCat楼主2023/5/1 09:19

错了#2#5 以下是我的代码:

#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
	double d,df=0;
	cin>>d;
	if(d>=401){df+=(d-401)*0.5663;d=401;}
	if(d>=151){df+=(d-151)*0.4663;d=151;}
	cout<<fixed<<setprecision(1)<<df+d*0.4463;
}
2023/5/1 09:19
加载中...