#include <stdio.h>
int main()
{
int N, stu[100000] = {0}, K;
scanf("%d", &N);
for(int i = 0; i < N; i++)
{
int score;
scanf("%d", &score);
stu[score]++;
}
scanf("%d", &K);
while(K--)
{
int key;
scanf("%d", &key);
printf("%d%s", stu[key], K == 0 ? "" : " " );
}
return 0;
}
04-26
04-26
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交