Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70789 邓嘉瑶 满足条件的数 C++ Time Limit Exceeded 1000 MS 280 KB 171 2024-04-19 22:06:21

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; for(int i=2;;i++){ if(a%i==b%i&&b%i==c%i){ cout<<i; } } return 0; }