#include<stdio.h>int main(){int m,n,gcd,t,i;scanf("%d,%d",&n,&m);if(n>m)t=m;m=n;n=t;for(i=1;i<=n;i++)if(m%i==0&&n%i==0)gcd=i;printf("%d",gcd);return 0;}
一只萌萌小番薯
相关分类