Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122145 白碣琨 按班分组 C++ Accepted 15 MS 272 KB 242 2025-06-14 12:45:10

Tests(10/10):


Code:

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