Run ID:74910
提交时间:2024-05-26 13:16:57
#include<bits/stdc++.h> using namespace std; int main(){ int q; char op; cin >> op >> q; if (op == 'P'){ printf ("%.2lf" , (double)q * 0.7); } else if (op == 'G'){ printf ("%.2lf" , (double)q * 0.8); } else if (op == 'S'){ printf ("%.2lf" , (double)q * 0.9); }else{ printf ("%.2lf" , (double)q * 0.95); } return 0; }