문제설명

 

소스코드

#include <iostream>
using namespace std;
int main() {
	int arrlength; int num = 0; int input;
	cin >> arrlength;
	int* arr = new int[arrlength];
	for (int i = 0; i < arrlength; ++i) cin >> arr[i];
	cin >> input;
	for (int i = 0; i < arrlength; ++i) if (input == arr[i]) ++num;
	cout << num;
}