

cíu mik với c++ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll x,y;
int DPP[1000000];
vector <string> L;
string s;
int Res = 0;
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
if (fopen("a.inp","r")){
freopen("a.inp","r",stdin);
freopen("a.out","w",stdout);
}
memset(DPP, 0, sizeof DPP);
while (cin){
cin >> x;
DPP[x] += 1;
//L.push_back(x);
}
for (int i = 0; i < 1000000; i++){
if (DPP[i]){
Res++;
}
//cout << DPP[i] << "\n";
}
cout << Res;
return 0;
}
Hãy giúp mọi người biết câu trả lời này thế nào?

Bảng tin