Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157043 周谨严 09优惠活动 C++ Wrong Answer 1 MS 272 KB 289 2026-07-13 11:37:51

Tests(0/4):


Code:

#include<iostream> using namespace std; int main(){ char P,G,S,X,o; int w; cin>>o>>w; if(o=='P'){ printf("%.2lf",w*0.7); } else if(o=='G'){ printf("%.2lf",w*0.8); } else if(o=='S'){ printf("%.2lf",w*0.9); } else if(o=='X'){ printf("%.2lf",w*0.95); } }


Run Info:

------Input------
C 100
------Answer-----
95.00
------Your output-----