题解
2025-05-05 14:51:49
发布于:浙江
0阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int a,b,c,d,e,m;
cin>>a;
for(int i=1;i<=a;i++){
cin>>b>>c>>d>>e;
for(int u=1;u<=b;u++){
if(b%u0&&c%u0&&d%u0&&e%u0){
m=u;
}
}
cout<<m<<endl;
}
return 0;
}
这里空空如也
有帮助,赞一个