60pts求助或者求HACK
查看原帖
60pts求助或者求HACK
982518
sjwhsss楼主2024/10/3 09:16
#include <bits/stdc++.h>
#define int long long
using namespace std;
int t , h , x , y;
main ()
{
	scanf("%lld" , &t);
	while(t--)
	{
		scanf("%lld%lld%lld" , &h , &x , &y);
		if (x == 0 && y == 0 || h == 0)printf("No\n");
		else if (x == 0)printf("Yes\n");
		else if (y == 0) printf("No\n");
		else if (y >= h)printf("Yes\n");
		else if (x >= h) printf("No\n");
		else
		{
			int a = x + y;
			if (a >= h)printf("Yes\n");
			else
			{
				h %= a;
				if (!h)printf("Yes\n");
				else
				{
					if (y >= h)
					{
						printf("Yes\n");
						continue;
					}
					h -= x;
					if (h <= 0)printf("No\n");
					else if (y >= h) printf("Yes\n");
					else printf("No\n");
				}
			}
		}
	}
	return 0;
}

我这样写有什么问题

2024/10/3 09:16
加载中...