#include<stdio.h>
int main()
{
int m = 0;
int n = 0;
int r = 0;
scanf("%d%d",&m,&n);
while (m % n)
{
r = m % n;
m = n;
n = r;
}
printf("%d",n);
}
09-12
1908
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-26
7万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-27
827
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)