提交时间:2024-03-01 15:47:01
运行 ID: 42542
#include <cstdio> #define maxn 110 int arr[maxn]; int main() { //freopen("D:\\temp\\test\\tmp.txt", "r", stdin); int n, m; int counter = 0; scanf("%d", &n); for(int i=0; i<n; i++) { scanf("%d", &arr[i]); } scanf("%d", &m); for(int i=0; i<n; i++) { if(arr[i] == m) counter++; } printf("%d\n", counter); return 0; }