新型方法AC不了
查看原帖
新型方法AC不了
1413309
makeway楼主2024/8/24 20:12
#include<bits/stdc++.h>
using namespace std;
int a,b,c,x=2;
int main()
{
    cin>>a>>b>>c;
	while(x>=a||x>=b||x>=c){
		if(a%x==b%x==c%x){
			cout<<x;
			return 0;
		}
		else x++;
	}
    return 0;
}
2024/8/24 20:12
加载中...