There is an index 0 somewhere in test case 6, just skipping the line with it should solve the problem
Exactly what is "norm"? is it average(sum A / len A) or like [2,3,4] for input [5,4,8,1,6]?
jolly_cerf_752 norm it's value B. You can understand which boiler need fuel by checking A_i and compare with value B