| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146944 | 张晓冉 | 09优惠活动 | C++ | Wrong Answer | 0 MS | 272 KB | 453 | 2026-02-01 12:41:56 |
#include<bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; int x; cin>>x; if(a == 'P'){ x = x/10*7; cout<<fixed<<setprecision(2)<<x; }else if(a == 'G'){ x = x/10*8; cout<<fixed<<setprecision(2)<<x; }else if(a == 'S'){ x = x/10*9; cout<<fixed<<setprecision(2)<<x; }else{ x = x/10*9.5; cout<<fixed<<setprecision(2)<<x; } return 0; }
------Input------
C 100
------Answer-----
95.00
------Your output-----
95