hihocoder offer收割编程练习赛8 A 小Ho的强迫症

时间:2025-01-09 16:07:14

思路:

乱搞。

实现:

 #include <iostream>
#include <cstdio>
using namespace std; typedef long long ll;
ll l, d, f;
int t; ll gcd(ll x, ll y)
{
return !y ? x : gcd(y, x % y);
} bool test(ll x, ll y, ll z)
{
return gcd(x, y) >= z;
} int main()
{
cin >> t;
while (t--)
{
cin >> l >> f >> d;
if (test(l, d, f))
cout << "YES" << endl;
else
cout << "NO" << endl;
}
return ;
}