提交时间:2023-02-06 08:21:35

运行 ID: 7663

#include<iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int x=0; for (int i=1; i<=1000000; i++) { if (a%i==b%i) { if (a%i==c%i) { x=i; break; } } } cout << x; return 0; }