题目传送门
代码:
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int x,y,z;
cin>>x>>y>>z;
if(y<=0||y>315||y>=x||x>1800||z>=1000||z<=100)
{
cout<<"Wrong Data";
}
else
{
if(z*2<x)
{
cout<<"No";
}
else
{
int w;
if(z>=x)w=z;
else w=z*2;
cout<<"Yes\n";
if(int(double(w*0.33))+y>=315)cout<<"Great";
else if(w/2+y>=315)cout<<"Eh..\nOK";
else if(w+y>=315)cout<<"Oh..\nOh..\nYes , If he can get 5-star.";
else cout<<"No\nNo\nNo\n"<<w/2+y;
}
}
return 0;
}
求大佬指点!