Cod sursa(job #2911660)
Utilizator | Data | 1 iulie 2022 06:21:21 | |
---|---|---|---|
Problema | Dtcsu | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.42 kb |
#include<fstream>
using namespace std;
ifstream F("dtcsu.in");
ofstream G("dtcsu.out");
int t,i,y;
string s;
long long x;
vector<long long> v;
int main()
{
for(t=276997;t;--t) {
for(F>>s,n=s.size(),i=0;i<n;++i)
x=x*10+s[i]-'0';
v.push_back(x);
}
for(F>>m;m;--m) {
F>>x;
if(find(v.begin(),v.end(),x)!=v.end())
++y;
}
return G<<y,0;
}