提交时间:2024-11-08 19:16:54

运行 ID: 56014

#include <iostream> 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; } return 0; }