Run ID:120895
提交时间:2025-06-01 16:22:53
#include <bits/stdc++.h> ? using namespace std; int main() { //辗转相除法求最大公约数 int a,b,c; cin>>a>>b; c = a%b; while(c != 0){ a = b; b = c; c = a%b; } cout<<b<<endl; return 0; }