Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78269 sh25_shengmy 余数相同问题 C++ 通过 0 MS 236 KB 306 2025-12-26 15:33:41

Tests(1/1):


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


测评信息: