1 条题解
-
1
202509cj108 (王宇浩) LV 7 @ 2025-12-25 21:53:42
#include <bits/stdc++.h>
using namespace std;
int main( )
{
int n;
double sum;
cin>>n;
if (n<=150)
{
sum=0.4463*n;
}
else if (n<=400 && n>=151)
{
sum=0.4463*150+0.4663*(n-150);
}
else if (n>=401)
{
sum=0.4463*150+0.4663*250+0.5663*(n-400);
}
cout<<fixed<<setprecision(1)<<sum;
return 0;
}
- 1
信息
- ID
- 2997
- 难度
- 9
- 分类
- (无)
- 标签
- 递交数
- 7
- 已通过
- 4
- 通过率
- 57%
- 上传者