标签:io for 2014 amp sp return print ca
#include <stdio.h>
int main()
{
int m,n;
while(scanf("%d,%d",&m,&n)!=EOF)
{
int i;
for(i=m;i>0;i--)
if(m%i==0&&n%i==0)
break;
printf("%d\n",i);
}
return 0;
}
题目556-最大公约数-nyoj20140812,布布扣,bubuko.com
标签:io for 2014 amp sp return print ca
原文地址:http://www.cnblogs.com/xiaziteng/p/3906554.html