Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
29517 | diandian | 余数相同问题 | C++ | 通过 | 0 MS | 240 KB | 291 | 2023-10-30 20:31:11 |
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, x = 2; cin >> a >> b >> c; while (1) { if (a % x == b % x && b % x == c % x) { cout << x; return 0; } x ++; } return 0; }