Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
273 B
2
Indexable
Never
#include<stdio.h>
int main(){
 int n;
 int t,i;
 scanf("%d",&t);
 while(t--)  {
 scanf("%d",&n);
 int x=0;
 for(i=0;i<2;i++)
 {
 	x*=10; 
	x+= n%10;
	n/=10;
	 }
	
  if( x==68 || x==86)
  {
 printf("YES\n");
  }
  else { 
  printf("NO\n");
  }
    }
}