Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146051 潘明泽 09优惠活动 C++ Wrong Answer 0 MS 272 KB 525 2026-01-25 20:24:09

Tests(0/4):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int a; char x; int main(){ cin>>x>>a; if(x=='P'){ printf("%.2lf",a*(7/10)); }else if(x=='G'){ printf("%.2lf",a*(8/10)); }else if(x=='S'){ printf("%.2lf",a*(9/10)); }else{ printf("%.2lf",a*(95/100)); } return 0; }


Run Info:

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