| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144951 | 刘宸宇 | 09优惠活动 | C++ | Accepted | 0 MS | 268 KB | 257 | 2026-01-24 19:46:42 |
#include<bits/stdc++.h> using namespace std; int main(){ char a; int b; cin>>a>>b; b+=1; if(a=='P') b*=0.7; else if(a=='G') b*=0.8; else if(a=='S') b*=0.9; else b*=0.95; printf("%.2lf",b*1.0); return 0; }