Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97426 Kevin 按班分组 C++ Accepted 1 MS 284 KB 207 2024-11-15 19:42:00

Tests(10/10):


Code:

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