提交时间:2024-11-08 19:16:17
运行 ID: 56013
#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<<endl;} return 0; }