Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7968 邓小龙 满足条件的数 C++ Accepted 0 MS 264 KB 238 2025-05-31 19:58:01

Tests(1/1):


Code:

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