题解 | #小乐乐查找数字#
小乐乐查找数字
https://www.nowcoder.com/practice/4c49a3a1559141f7a080a48c98cca4cb
#include <stdio.h> int main() { int arr[101] = {0}; int n = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { int m = 0; scanf("%d", &m); arr[m]++; } int x = 0; scanf("%d", &x); printf("%d", arr[x]); return 0; }
c语言刷题 文章被收录于专栏
c语言刷题题目