Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65962 李雨昊 09优惠活动 C++ Wrong Answer 0 MS 276 KB 351 2024-02-25 14:20:07

Tests(0/4):


Code:

#include<iostream> #include<cstdio> using namespace std; int main() { char a; int b,c; cin>>a>>b; if (a =='P'){ c = b*0.7; printf("%.2d",c); } else if (a=='G'){ c = b*0.8; printf("%.2d",c); } else if (a == 'S'){ c = b*0.9; printf("%.2d",c); } else{ c = b*0.95; printf("%.2d",c); } return 0; }


Run Info:

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