Comments

Thank you for problem B, it was tougher than regular div 2 B problems ( according to me ), took me 30mins to think.

THANKS A LOT

Please elaborate if you have time, I didn't got your approach.

My questions : 1. What is this 100 nary number ?

  1. What are A1,A2,A3 ? Are they those three numbers which we are going to take ?

  2. and please explain this : we only need 3∗99+1 distinct numbers to represent all numbers within 10^6.

Thanking you in advance