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