const int N = 1e6 + 5;
int t;
int main()
{
//freopen("in.txt", "r", stdin);
int n, k;
cin >> t;
int cot = 0;
ll a, b, c, d;
while (t--)
{
cin >> a >> b >> c >> d;
printf("Case %d: %lldn", ++cot, gcd(abs(a-c),abs(b-d))+1);
}
return 0;
}
最后
以上就是缓慢唇彩最近收集整理的关于How Many Points?(线段之间整点个数)的全部内容,更多相关How内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复