Bomb the base solution codechef – In Chefland, there are NN houses numbered from 11 to NN, ithith house has a defence system having strength AiAi.

Bomb the base solution codechef In Chefland, there are NN houses numbered from 11 to NN, ithith house has a defence system having strength AiAi. Chef suspects a bomb drop on one of the houses very soon. A bomb with attack strength XX can destroy the ithith house, if the defence system of the ithith house AiAi, is strictly less than XX. Also, when the ithith house is destroyed due to the bomb, all houses with indices jj such … Read more