Can anyone tell the approach? I referred to the editorial, but could not understand very well.Problem Link

@galencolin

You should clarify which part of the editorial you donâ€™t understand

1 Like

Thank you @galencolin , I was facing problem understanding this statement -â€śFor all k(1 â‰¤ k â‰¤ N), the number of times X is divided by 2 is equal to the number of

times ak/2 is divided by 2â€ť, but I have solved this now