Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147370 赵奕杰 09优惠活动 C++ Accepted 0 MS 268 KB 265 2026-02-04 16:35:24

Tests(4/4):


Code:

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