Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117001 唐诗阳 满足条件的数 C++ Accepted 1 MS 268 KB 332 2025-04-13 10:33:31

Tests(1/1):


Code:

#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,x=2; cin>>a>>b>>c; while(x<a && x<b && x<c){ if(a%x==b%x && a%x==c%x){ break; } x++; } cout<<x; return 0; }