求助!全purple
查看原帖
求助!全purple
977778
__Harry_Haiyun__楼主2023/8/24 09:49
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e6+7;
int main()
{
 	ios::sync_with_stdio(false);
 	cin.tie(NULL);
 	vector<int>v;
 	int n,target;
 	cin >> n;
 	for (int i = 0; i < n; i++)
 		cin >> v[i];
 	cin >> target;
 	cout << count(v.begin(),v.end(),target);
 	return 0;
}
2023/8/24 09:49
加载中...