Advertisement
noor017

The Internet Computer Parts Company

Feb 11th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a1, a2, a3, a4, a5, b1, b2, b3, b4, b5;
  5.     while(scanf("%d %d %d %d %d", &a1, &a2, &a3, &a4, &a5) == 5) {
  6.         scanf("%d %d %d %d %d", &b1, &b2, &b3, &b4, &b5);
  7.  
  8.         if(a1 != b1 && a2 != b2 && a3 != b3 && a4 != b4 && a5 != b5){
  9.             printf("Y\n");
  10.         }
  11.         else {
  12.             printf("N\n");
  13.         }
  14.     }
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement