零分求助!!!
查看原帖
零分求助!!!
965334
1_1_1_1_1_1_楼主2023/8/13 18:47
#include<bits/stdc++.h>

using namespace std;

int n;
int ax, ay, bx, by;

int main()
{
	int i;
	
	cin >> n;
	for(i = 0; i < n; i++)
	{
		cin >> ax >> ay;
		cin >> bx >> by;
		if(__gcd(abs(ax - bx), abs(ay - by)) == 1)
		{
			cout << "no";
		}
		else
		{
			cout << "yes";
		}
	}
}
2023/8/13 18:47
加载中...