提交时间:2024-11-19 10:42:52

运行 ID: 57025

#include<bits/stdc++.h> using namespace std; int main() { int m,n,r; cin>>m>>n; r=m%n; while(r!=0) { m=n; n=r; r=m%n; } cout<<n<<endl; return 0; }