第二题我很不解啊,我的这种写法为什么只通过了90%
#include <iostream>
#include <unordered_map>
using namespace std;
int main() {
long long n = 0;
unordered_map<long long,int> my_map;
while (cin >> n) {
if (n == 0) {
cout << my_map.size() << endl;
my_map.clear();
}
else {
my_map[n] = 1;
}
}
return 0;
}