Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
136186 张暄浩 满足条件的数 C++ Accepted 1 MS 272 KB 243 2025-11-09 17:29:38

Tests(1/1):


Code:

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