提交时间:2024-09-24 06:46:22
运行 ID: 51663
#include<bits/stdc++.h> using namespace std; int main() { int m, n, a, sum = 0; cin >> m >> n; for (int i = 1; i <= m; i++) { cin >> a; if (a == n) { sum += 1; } } cout << sum; return 0; }