求调
  • 板块灌水区
  • 楼主_liujunming_
  • 当前回复0
  • 已保存回复0
  • 发布时间2025/1/20 22:53
  • 上次更新2025/1/21 10:16:01
查看原帖
求调
1211335
_liujunming_楼主2025/1/20 22:53

题目传送门

代码:

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

求大佬指点!

2025/1/20 22:53
加载中...