标签:
1 #include<stdio.h> 2 int main() 3 { 4 int m,n,i,k,flag,t; 5 scanf("%d",&k); 6 for(i=1;i<=k;i++) 7 { 8 scanf("%d%d",&n,&m); 9 while(m!=0) 10 { 11 t=n%m; 12 n=m; 13 m=t; 14 } 15 if(n==1) 16 printf("NO\n"); 17 else 18 printf("YES\n"); 19 } 20 return 0; 21 }
标签:
原文地址:http://www.cnblogs.com/Traveller-Leon/p/4844689.html