#include <bits/stdc++.h> using namespace std; int x, t[45], s =0; int main() {
for (int i = 1; i <= 10; i++) { cin >> x; t[x % 42]++; } for (int j = 0; j <= 41; j++) { if (t[j]) { s++; } } cout << s; return 0;
}
#include <bits/stdc++.h> using namespace std; int x, t[45], s = 0; int main() {
for (int i = 1; i <= 10; i++) { cin >> x; t[x % 42]++; } for (int j = 0; j <= 41; j++) { if (t[j] > 0) { s++; } } cout << s ; return 0;
Using your 蒙青创OJ universal account