Run ID:146943
提交时间:2026-02-01 12:40:32
#include<bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; int x; cin>>x; if(a == 'P'){ x = x/10*7; cout<<fixed<<setprecision(2)<<x; }else if(a == 'G'){ x = x/10*8; cout<<fixed<<setprecision(2)<<x; }else if(a == 'S'){ x = x/10*9; cout<<fixed<<setprecision(2)<<x; }else{ x = x/10*9.5; cout<<fixed<<setprecision(2)<<x; } return 0;