#include <bits/stdc++.h> using namespace std; int main() { int s; s = 0; int a[15]; int b[15]; for (int i = 1; i <= 10; i++) { cin >> a[i]; } for (int i = 1; i <= 10; i++) { b[i] = a[i] % 42; } for (int i = 1; i <= 10; i++) { for (int j = i + 1; j <= 10; j++) { if (b[i] == b[j]) { b[j] = -1; } } } for (int i = 1; i <= 10; i++) { if (b[i] != -1) s++; } cout << s; }
共 2 条回复
???