80分求助
查看原帖
80分求助
217509
5G5G楼主2020/5/14 18:34

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;
}

2020/5/14 18:34
加载中...