题解
2025-09-23 19:13:07
发布于:广东
5阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main(){
char s;
int x, y;
cin >> s >> x >> y;
int ts;
switch (s) {
case 'A': ts = 37500; break;
case 'B': ts = 47500; break;
case 'C': ts = 49000; break;
case 'D': ts = 52000; break;
case 'E':
if (x==10) ts = 80000;
else if (x == 30) ts = 160000;
break;
default: ts = 0;
}
if (y <= x) {
cout << ts << endl;
} else {
cout << (x * ts) / y << endl;
}
return 0;
}
这里空空如也
有帮助,赞一个