| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 78269 | sh25_shengmy | 余数相同问题 | C++ | Accepted | 0 MS | 236 KB | 306 | 2025-12-26 15:33:41 |
#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; }