This commit is contained in:
HuangHai
2025-08-30 18:35:01 +08:00
commit 1f397eca87
6258 changed files with 1487241 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#include<iostream>
#include<iomanip>
using namespace std;
int main(){
int wei;
cin>>wei;
if(wei<=10){
cout<<setiosflags(ios::fixed)
<<setprecision(2)
<<0.8*wei+0.2
<<endl;
}
else if(wei>10 && wei<=20){
cout<<setiosflags(ios::fixed)
<<setprecision(2)
<<8+0.75*(wei-10)+0.2
<<endl;
}
else if(wei>20 && wei<=30){
cout<<setiosflags(ios::fixed)
<<setprecision(2)
<<8+7.5+0.7*(wei-20)+0.2
<<endl;
}
else{
cout<<"<EFBFBD>޷<EFBFBD><EFBFBD>ʼ<EFBFBD>"<<endl;
}
return 0;
}