#include<cstdio> using namespace std; int a,b,c,x[500001],i; int s[1000001],count; int main() {
scanf("%d%d%d",&a,&b,&c); for(i=0;i<a;i++) { scanf("%d",&x[i]); s[x[i]]++; } for(i=0;i<b;i++) { scanf("%d",&x[i]); s[x[i]]++; } for(i=0;i<c;i++) { scanf("%d",&x[i]); s[x[i]]++; } for(i=0;i<1000000;i++) { if(s[i]>1) count++; } printf("%d\n",count); for(i=0;i<1000000;i++) { if(s[i]>1) printf("%d\n",i); } return 0; } -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.