Run ID:95693
提交时间:2024-11-01 20:18:06
#include<iostream> using namespace std; int main() { int a,b,c,x=2; cin>>a>>b>>c; while(1) { x++; if((a%x)==(b%x)&&(b%x)==(c%x)) { cout<<x<<endl; break; } } return 0; }