Cod sursa(job #3283273)

Utilizator Mihai_OctMihai Octavian Mihai_Oct Data 8 martie 2025 19:46:46
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 fin("txt.in");
ofstream fout("txt.out");
long long t, n, rasp;
int f = 276997;
unordered_map<long long, bool> fr;

int main() {
    while(f--) {
        fin >> t;
        s[t] = true;
    }
    fin >> t;
    while(t--) {
        fin >> n;
        rasp += fr[n];
    }
    fout << rasp;

    return 0;
}