Run ID:117001
提交时间:2025-04-13 10:33:31
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,x=2; cin>>a>>b>>c; while(x<a && x<b && x<c){ if(a%x==b%x && a%x==c%x){ break; } x++; } cout<<x; return 0; }