Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142458 罗晟睿 满足条件的数 C++ Accepted 0 MS 280 KB 187 2026-01-10 15:24:17

Tests(1/1):


Code:

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