Question
Distinct Count in Every Prefix
You are given an array of integers from
Input
The first line contains KaTeX can only parse string typed expression. The second line contains KaTeX can only parse string typed expression integers.
Output
Print the distinct count after every element.
Example
Example:
Input
Input
6
2 2 5 2 7 5Output1 1 2 2 3 3