Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74750 石晋骁 09优惠活动 C++ Wrong Answer 0 MS 276 KB 333 2024-05-25 20:34:23

Tests(1/4):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int q; char op; cin >> op >> q; if (op == 'P'){ printf ("%.2lf" , (double)q * 0.7); } if (op == 'G'){ printf ("%.2lf" , (double)q * 0.8); } if (op == 'S'){ printf ("%.2lf" , (double)q * 0.9); } printf ("%.2lf" , (double)q * 0.95); return 0; }


Run Info:

------Input------
P 100
------Answer-----
70.00
------Your output-----
70.0095.00