Run ID:165103
提交时间:2026-11-09 20:27:52
#include<bits/stdc++.h> using namespace std; int main(){ char P,G,S,C; double money; cin>>c>>money; if (c=='P'){ money*0.7; } else if (c=='G'){ money*0.8; } else if (c=='S'){ money*0.9; } else{ money*9.5; } cout<<fixed<<setprecision(2)<<money<<endl; return 0; }