提交时间:2019-12-07 14:17:02

运行 ID: 2791

#include <iostream> #include <iomanip> using namespace std; int main() { int i,n,a[100],num,x=0; cin >> n; for (i=0; i<n; i++) cin >> a[i]; cin >> num; for (i=0; i<n; i++) { if (a[i] == num) x++; } cout << x; return 0; }