打表英雄到此一游(最短解法)

一根大香蕉  •  10天前


include

include

using namespace std;

int main(){

double p,w,s;
cin >> p >> w >> s;
double d = (s<250?0:(s<500?2:(s<1000?5:(s<2000?8:(s<3000?10:15)))));
cout << setprecision(2) << fixed << p*w*s*(1-d/100);

}


Comments: