Run ID:74750
提交时间:2024-05-25 20:34:23
#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); } if (op == 'G'){ printf ("%.2lf" , (double)q * 0.8); } if (op == 'S'){ printf ("%.2lf" , (double)q * 0.9); } printf ("%.2lf" , (double)q * 0.95); return 0; }