noshin98

uva12854

Sep 13th, 2016
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b,c,d,e,f,g,h,i,j;
  5.     while(scanf("%d%d%d%d%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j)==10)
  6.     {
  7.         if(a!=f&&b!=g&&c!=h&&d!=i&&e!=j)
  8.         {
  9.             printf("Y\n");
  10.  
  11.         }
  12.         else
  13.             printf("N\n");
  14.     }
  15. }
Add Comment
Please, Sign In to add comment