| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159250 | 吴尔玉 | 09优惠活动 | C++ | Accepted | 1 MS | 272 KB | 347 | 2026-08-27 11:30:02 |
#include<iostream> using namespace std; int main(){ char a; double j; cin>>a>>j; if(a=='P'){ printf("%.2lf",j*0.7); } else if(a=='G'){ printf("%.2lf",j*0.8); } else if(a=='S'){ printf("%.2lf",j*0.9); } else{ printf("%.2lf",j*0.95); } return 0; }