Run ID:103747
提交时间:2024-12-29 15:06:28
#include<bits/stdc++.h> using namespace std; long long jc(int bcs,int cs){ int max; for(int i=1;i<<cs;i++){ if(bcs%i==0&&cs%i==0){ max=i; } } return max; } int main() { long long a,b; cin>>a>>b; long long s=jc(a,b); cout<<s; return 0; }