我的

songqiming114514 2023-12-09 16:04:50

#include using namespace std; int a[20];

int main(){ int N,m,cnt = 0; cin >> N ; for (int i = 0 ; i < N ; i++){ cin >> a[i]; } cin >> m; for (int j = 0 ; j < N ; j++){ if (a[j] == m) cnt++; } cout << cnt << endl; return 0; }