Cod sursa(job #2394759)
| Utilizator | Data | 1 aprilie 2019 21:40:38 | |
|---|---|---|---|
| Problema | Dtcsu | Scor | 0 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.37 kb |
#include<bits/stdc++.h>
using namespace std;
ifstream fin("dtcsu.in");
ofstream fout("dtcsu.out");
unordered_map<long long,int>mp;
int n,f,cnt;
int main()
{
n=276997;
while(n--)
{
fin>>f;
mp[f]=1;
}
fin>>n;
while(n--)
{
fin>>f;
if(mp.find(f)!=mp.end())
cnt++;
}
fout<<cnt;
}
