#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int N,check; cin >> N;
vector<int>v;
for (int i = 0; i < N; i++) {
int num; cin >> num;
v.push_back(num);
}
cin >> check;
int cnt = 0;
for (int i = 0; i < N; i++) {
if (v[i] == check) cnt++;
}
cout << cnt;
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 10811๋ฒ - ๋ฐ๊ตฌ๋ ๋ค์ง๊ธฐ (0) | 2021.10.24 |
---|---|
[๋ฐฑ์ค,c++] 10809๋ฒ - ์ํ๋ฒณ ์ฐพ๊ธฐ (0) | 2021.10.23 |
[๋ฐฑ์ค,c++] 10808๋ฒ - ์ํ๋ฒณ ๊ฐ์ (0) | 2021.10.23 |
[๋ฐฑ์ค,c++] 10804๋ฒ - ์นด๋ ์ญ๋ฐฐ์น (0) | 2021.10.23 |
[๋ฐฑ์ค,c++] 10798๋ฒ - ์ธ๋ก ์ฝ๊ธฐ (0) | 2021.10.23 |
[๋ฐฑ์ค,c++] 10773๋ฒ - ์ ๋ก (0) | 2021.10.23 |
๋๊ธ