| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69195 | 杨一诺 | 09优惠活动 | C++ | Accepted | 1 MS | 280 KB | 288 | 2024-03-31 09:43:20 |
#include<bits/stdc++.h> using namespace std; int main(){ char a; int n,b; cin>>a>>n; switch(a){ case 'P':printf("%.2lf",n*0.7);break; case 'G':printf("%.2lf",n*0.8);break; case 'S':printf("%.2lf",n*0.9);break; default:printf("%.2lf",n*0.95);break; } return 0; }