- 题解
好我企鹅89
- 2023-10-5 13:50:01 @
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,x;
cin>>a>>b>>c;
for(int i=2;i<=100;i++)
{
if(a%i==b%i && a%i==c%i)
{
x=i;
break;
}
}
cout<<x;
return 0;
}
1 comments
-
huangjianquan LV 8 @ 2023-10-5 13:50:46
余数相同问题
- 1