Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b,c,d,e,f,g,h,i,j;
- while(scanf("%d%d%d%d%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j)==10)
- {
- if(a!=f&&b!=g&&c!=h&&d!=i&&e!=j)
- {
- printf("Y\n");
- }
- else
- printf("N\n");
- }
- }
Add Comment
Please, Sign In to add comment