Cod sursa(job #2911668)
Utilizator | Data | 1 iulie 2022 06:43:34 | |
---|---|---|---|
Problema | Dtcsu | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.38 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;t;--t) {
F>>x;
if(x&1LL)
v.insert(x);
}
for(F>>t;t;--t) {
F>>x;
if(x&&v.find(x/x&(-x))!=v.end())
++y;
}
return G<<y,0;
}