Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
29518 曹梓洺 余数相同问题 C++ 通过 0 MS 244 KB 195 2023-10-30 20:40:58

Tests(1/1):


#include<iostream> using namespace std; int main() { int a, b, c, x=2; cin>>a>>b>>c; while(true){ if(a%x==b%x&&a%x==c%x){ cout<<x; return 0; } x++; } return 0; }


测评信息: