11

胡栋文  •  15天前


#include<bits/stdc++.h> 
using namespace std; 
int main(){ 
double a=0.0,b=0.0,c=0.0,t; 
cin>>t; 
if(t<=2){ 
 a=6; 
} 
if(t<=10&&t>=2){ 
 a=6+(t-2)*1.8; 
} 
if(t>=10){ 
 a=6+8*1.8+(t-10)*1.8*1.5; 
} 
cout<<a<<endl; 
return 0; 
}


评论: