| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135834 | 李昱龙 | 09优惠活动 | C++ | Accepted | 1 MS | 268 KB | 287 | 2025-11-08 15:13:18 |
#include<bits/stdc++.h> using namespace std; int main(){ int d; char a; cin>>a>>d; switch(a){ case 'P':printf("%.2lf",0.7*d);break; case 'G':printf("%.2lf",0.8*d);break; case 'S':printf("%.2lf",0.9*d);break; default:printf("%.2lf",0.95*d);break; } return 0; }