Cod sursa(job #2954485)
Utilizator | Data | 14 decembrie 2022 16:59:30 | |
---|---|---|---|
Problema | Dtcsu | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include<bits/stdc++.h>
using namespace std;
ifstream F("dtcsu.in");
ofstream G("dtcsu.out");
int t,y;
long long x;
unordered_set<long long> v;
int main()
{
for(;t<276997;F>>x,v.insert(x),++t);
for(F>>t;t--;)
if(F>>x,v.find(x)!=v.end())
++y;
return G<<y,0;
}