Run ID:66542
提交时间:2024-03-09 12:15:16
#include<bits/stdc++.h> using namespace std; int main(){ char h; double je; cin>>h>>je; if(h == 'P'){ printf("%.21f",je*0.7); }else if(h = 'G'){ printf("%.21f",je*0.8); }else if(h ='S'){ printf("%.21f",je*0.9); }else{ printf("%.21f",je*0.95); } return 0; }