|
|
back to boardWhy CRASH on 5th test ?? Posted by yaho0o0 22 Mar 2009 15:02 #include <iostream> using namespace std; int main() { long long n,k,i,a[16000],b,j,l=0,br[10000]; cin>>n; for(i=1;i<=n;i++) { cin>>a[i]; br[a[i]]=1; } cin>>k; for(i=1;i<=k;i++) { cin>>b; if(br[b]==1) l++; } cout<<l<<endl; return 0; } |
|
|