Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122139 罗安博 按班分组 C++ Accepted 1 MS 272 KB 213 2025-06-14 12:27:42

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,a,b,c,d; cin>>a>>b; n=a; while(n>=1){ if(a%n==0){ if(b%n==0){ cout<<n; return 0; } } n--; } }