Run ID:74745

提交时间:2024-05-25 20:26:02

#include<bits/stdc++.h> using namespace std; int main(){ int q; char op; cin >> q >> op; 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; }