Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122141 田子熙 按班分组 C++ Accepted 1 MS 272 KB 236 2025-06-14 12:31:18

Tests(10/10):


Code:

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