错哪了?
查看原帖
错哪了?
239761
zheysq_147楼主2020/6/26 15:21
#include<bits/stdc++.h>
using namespace std;
int n,xa,xb,ya,yb;
int main()
{
	scanf("%d",&n);
	while(n--)
	{
		scanf("%d%d%d%d",&xa,&xb,&ya,&yb);
		if(__gcd(abs(xa-xb),abs(ya-yb))>1)
		printf("no\n");
		else
		printf("yes\n");
	}
	return 0;
}
2020/6/26 15:21
加载中...