Run ID:74035

提交时间:2024-05-21 18:54:30

#include<iostream> using namespace std; int main(){ char hy; double q,z; cin>>hy>>q; if(hy == 'P'){ z = q; q = q - 70; z = z - q; printf("%.2lf",z); } if(hy == 'G'){ z = q; q = q - 80; z = z - q; printf("%.2lf",z); } if(hy == 'S'){ z = q; q = q - 90; z = z - q; printf("%.2lf",z); } z = q; q = q - 95; z = z - q; printf("%.2lf",z); return 0; }