Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87762 Kevin 满足条件的数 C++ Accepted 0 MS 272 KB 199 2024-08-14 15:28:30

Tests(1/1):


Code:

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