Defeat in Final Battle

Sifatul Islam is a great fan of Iron man. He is planning to make a suit for iron man. The suit can set a power K. Then choose a subset S of indices of enemies and calculate the sum of Poweri where i is elements of subset S. It can kill all the enemy of the subset S if the sum is divided by K. The only disadvantages of the suit is that it can be used one time only.


This is a companion discussion topic for the original entry at https://toph.co/p/defeat-in-final-battle