#include<iostream> #include<cstdio> using namespace std; int main () { int m=0; int n=0; int tmp=0; scanf ("%d%d",&n,&m); while (tmp=m%n) { m=n; n=tmp; } printf ("%d\n",n); return 0; }</cstdio></iostream>
点赞

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务