Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4996 陈锦曦 09优惠活动 C++ Accepted 0 MS 264 KB 330 2024-10-19 21:03:15

Tests(4/4):


Code:

#include <iostream> #include <iomanip> using namespace std; int main(){ char a; int b; cin>>a>>b; float c; switch(a){ case'P': c=0.7; break; case'G': c=0.8; break; case'S': c=0.9; break; default: c=0.95; break; } printf("%.2lf\n",b*c); return 0; }