My first submission for this problem gave a WA, which was surprising and cost me 10 minutes.
If you look into the solution page, the status is still a “??”. Later when i submitted it again it gave me AC.
What happened there? Did anyone else encounter this type of problem?