Run ID:74747

提交时间:2024-05-25 20:28:29

#include<bits/stdc++.h> using namespace std; int main(){ int q; char op; cin >> op >> q; if (op == 'P'){ cout << q * 0.7; } if (op == 'G'){ cout << q * 0.8; } if (op == 'S'){ cout << q * 0.9; } cout << q * 0.95; return 0; }