Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109938 | 范恒恺 | 09优惠活动 | C++ | Wrong Answer | 0 MS | 264 KB | 265 | 2025-02-13 14:49:06 |
#include<bits/stdc++.h> using namespace std; int main(){ char w; int a;//定义商品价格 double b; cin>>w>>a; if(w=='P'){ cout<<a*0.7; } if(w=='G'){ cout<<a*0.8; } if(w=='S'){ cout<<a*0.9; } if(w==b){ cout<<a*1.0*0.95; } return 0; }
------Input------
C 100
------Answer-----
95.00
------Your output-----