| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74909 | 石晋骁 | 09优惠活动 | C++ | Wrong Answer | 0 MS | 268 KB | 333 | 2024-05-26 13:15:39 |
#include<bits/stdc++.h> using namespace std; int main(){ int q; char op; cin >> op >> q; if (op == 'P'){ printf ("%.2lf" , (double)q * 0.7); } if (op == 'G'){ printf ("%.2lf" , (double)q * 0.8); } if (op == 'S'){ printf ("%.2lf" , (double)q * 0.9); } printf ("%.2lf" , (double)q * 0.95); return 0; }
------Input------
P 100
------Answer-----
70.00
------Your output-----
70.0095.00