Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4001 | 邓思博 | 09优惠活动 | C++ | Wrong Answer | 0 MS | 268 KB | 538 | 2024-07-24 14:13:23 |
# include<iostream> # include<iomanip> using namespace std; int main(){ char b; double a; cin>>b>>a; switch(b){ case 'P':cout<<fixed<<setprecision(2); cout<<a*0.7<<endl; break; case 'G':cout<<fixed<<setprecision(2); cout<<a*0.8<<endl; break; case 'S':cout<<fixed<<setprecision(2); cout<<a*0.9<<endl; break; default:cout<<a*0.95<<endl; } return 0; }
------Input------
C 100
------Answer-----
95.00
------Your output-----
95