Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145927 张奕杨 09优惠活动 C++ Accepted 0 MS 268 KB 331 2026-01-25 19:39:00

Tests(4/4):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b; char s; cin>>s>>a; switch(s){ case 'P':printf("%.2lf",a*0.7);break; case 'G':printf("%.2lf",a*0.8);break; case 'S':printf("%.2lf",a*0.9);break; default:printf("%.2lf",a*0.95);break; } return 0; }