提交时间:2025-12-26 15:33:41

运行 ID: 78269

#include<bits/stdc++.h> #include<math.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; for(int x=2;x<=a;x++){ if((a-b)%x==0&&(b-c)%x==0){ cout<<x; break; } else{ } } return 0; }