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