Please Explain the Editorial of Problem F of Atcoder Begginer Contest 143 Problem F(Distinct Numbers))

I am not able to understand the editorial of problem F(Distinct Numbers)(last page in the given pdf)
link to problem: https://atcoder.jp/contests/abc143/tasks/abc143_f
pdflink: https://img.atcoder.jp/abc143/editorial.pdf

Hi Shaswat
The editorial is pretty complex to understand. I have raised it to mentor attention and you will be informed shortly.

Hope it helps :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.