Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int t, i, j, k;
- scanf("%d", &t);
- int a[t], b[t-1], c[t-2];
- for(i = 0; i < t; i++) scanf("%d", &a[i]);
- for(j = 0; j < t - 1; j++) scanf("%d", &b[j]);
- for(k = 0; k < t - 2; k++) scanf("%d", &c[k]);
- int x = 0;
- for(i = 0; i < t; i++) x ^= a[i];
- for(j = 0; j < t - 1; j++) x ^= b[j];
- printf("%d\n", x);
- int y = 0;
- for(j = 0; j < t - 1; j++) y ^= b[j];
- for(k = 0; k < t - 2; k++) y ^= c[k];
- printf("%d\n", y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement