1 #include <stdio.h> 2 int main(){ 3 int n; 4 int a,b; 5 while(~scanf("%d",&n)){ 6 while(n--){ 7 scanf("%d%d",&a,&b); 8 if(a>=b) 9 printf("MMM BRAINS "); 10 else 11 printf("NO BRAINS "); 12 } 13 } 14 return 0; 15 }
1 #include <stdio.h> 2 int main(){ 3 int n; 4 int a,b; 5 while(~scanf("%d",&n)){ 6 while(n--){ 7 scanf("%d%d",&a,&b); 8 if(a>=b) 9 printf("MMM BRAINS "); 10 else 11 printf("NO BRAINS "); 12 } 13 } 14 return 0; 15 }