80分求助
在线等,挺急的;
#include <iostream>
using namespace std;
int main() {
int x,y,z;
cin>>x>>y>>z;
if(y<=0 || y>315 || x>1800 || z>=1000 || z<=100 || y>=x){
cout<<"Wrong Data"<<endl;
return 0;
}
if(z*2<x){
cout<<"No"<<endl;
return 0;
}
cout<<"Yes"<<endl;
if(z>=x){
if(z*33/100+y>=315){
cout<<"Great"<<endl;
return 0;
}
if(z*50/100+y>=315){
cout<<"Eh.."<<endl;
cout<<"OK"<<endl;
return 0;
}
if(z+y>=315){
cout<<"Oh.."<<endl;
cout<<"Oh.."<<endl;
cout<<"Yes , If he can get 5-star."<<endl;
return 0;
}
cout<<"No"<<endl;
cout<<"No"<<endl;
cout<<"No"<<endl;
cout<<z*50/100+z*50/100+y<<endl;
}
if(z*33/100+z*33/100+y>=315){
cout<<"Great"<<endl;
return 0;
}
if(z*50/100+z*50/100+y>=315){
cout<<"Eh.."<<endl;
cout<<"OK"<<endl;
return 0;
}
if(z*2+y>=315){
cout<<"Oh.."<<endl;
cout<<"Oh.."<<endl;
cout<<"Yes , If he can get 5-star."<<endl;
return 0;
}
cout<<"No"<<endl;
cout<<"No"<<endl;
cout<<"No"<<endl;
cout<<z*50/100+z*50/100+y<<endl;
return 0;
}