```java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception{
int []score=new int[101];
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
try {
int n= Integer.parseInt(in.readLine());
String[] inp=in.readLine().split(" ");
for (int i=0;i<n;i++){
score[Integer.parseInt(inp[i])]++;
}
String[] s=in.readLine().split(" ");
int k=Integer.parseInt(s[0]);
for (int i=0;i<k-1;i++){
System.out.print(score[Integer.parseInt(s[i+1])]+" ");
}
System.out.print(score[Integer.parseInt(s[s.length-1])]);
} catch (IOException e) {
e.printStackTrace();
}
}
}
想具体知道这一块的意思,有点看不懂
```java
for (int i=0;i<n;i++){
score[Integer.parseInt(inp[i])]++;
}
String[] s=in.readLine().split(" ");
int k=Integer.parseInt(s[0]);
for (int i=0;i<k-1;i++){
System.out.print(score[Integer.parseInt(s[i+1])]+" ");
}
System.out.print(score[Integer.parseInt(s[s.length-1])]);