| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69194 | 杨一诺 | 09优惠活动 | C++ | Wrong Answer | 1 MS | 272 KB | 246 | 2024-03-31 09:39:23 |
#include<bits/stdc++.h> using namespace std; int main(){ char a; int n; cin>>a>>n; switch(a){ case 'P':cout<<n*0.7;break; case 'G':cout<<n*0.8;break; case 'S':cout<<n*0.9;break; default:cout<<n*0.95;break; } return 0; }
------Input------
C 100
------Answer-----
95.00
------Your output-----
95