Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164453 王垚植 按班分组 C++ Accepted 2 MS 272 KB 240 2026-11-03 19:01:26

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; for(int i=min(a,b);i>=1;i--){ if (a%i==0 && b%i==0){ cout<<i<<'\n'; break; } } return 0; }