| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150627 | 邓弘锐 | 09优惠活动 | C++ | Accepted | 1 MS | 272 KB | 330 | 2026-03-29 14:18:03 |
#include<bits/stdc++.h> using namespace std; int main(){ double b; char a; cin>>a>>b; switch(a){ case 'P':printf("%.2lf",b*0.7);break; case 'G':printf("%.2lf",b*0.8);break; case 'S':printf("%.2lf",b*0.9);break; default:printf("%.2lf",b*0.95);break; } return 0; }