Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
72693 sh25_zhuwy 余数相同问题 C++ 通过 0 MS 248 KB 206 2025-11-02 13:51:50

Tests(1/1):


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


测评信息: