提交时间:2024-02-22 20:14:04
运行 ID: 41632
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a; cin >> b; cin >> c; int x = 2; while(x <= a + b + c){ if(a % x == b % x and b % x == c % x ){ cout << x; return 0; } x++; } return 0; }