提交时间:2025-03-26 14:25:15
运行 ID: 8147
#include <bits/stdc++.h> using namespace std; int main() { double x,y,n; cin >> x >> y; if(x<40) { n = x*y; } else if(x>=40&&x<50) { n = 40*y+(x-40)*1.5; } else { n = 40*y+10*1.5+(x-50)*2; } printf("%.2f",n); return 0; }