Comment

avatar username

personally i didn't model it to a graph,instead i solved it by

just in case

backtracking on the operations and comparing them to B

note:i solved separately for every bit

here is my submission 298383591

my time complexity is O(nm*log(max ai)*log(n+m))

The actual rating of this user is 1800.

Original comment.

Statistics