Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
92072 | 殷佳雨萱 | 09优惠活动 | C++ | Wrong Answer | 1 MS | 272 KB | 322 | 2024-09-28 11:11:25 |
#include<iostream> using namespace std; int main(){ char p,G,S,t,a; double b,c; cin>>a>>b; if(a=='p'){ c=b*0.7; } else if(a=='G'){ c=b*0.8; } else if(a=='S'){ c=b*0.9; } else{ c=b*0.95; } printf("%.2lf",c); return 0; }
------Input------
P 100
------Answer-----
70.00
------Your output-----
95.00