#include <bits/stdc++.h> //头文件 using namespace std; //命名空间 int main() //主函数,程序入口 { int a=0,b=0,c=0,x=0; cin>>a>>b>>c; for(int i=2;i<=a || i<=b || i<=c;i++) { if(a%i==b%i && a%i==c%i) { cout<<i; return 0; } } return 0; //程序结束,返回 }
By signing up a 羽润编程 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 羽润编程 universal account