Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157044 周谨严 09优惠活动 C++ Accepted 1 MS 276 KB 276 2026-07-13 11:39:10

Tests(4/4):


Code:

#include<iostream> using namespace std; int main(){ char P,G,S,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{ printf("%.2lf",w*0.95); } }