Company: phonepe_30july
Difficulty: medium
Trinity Shot Problem Problem Description Robert Oppenheimer is a sworn communist and believes in equality in nature. He believes that it is unfair that different atoms in the universe have different energy levels, and thinks that all of them must have the same energy level. In order to do this, Robert invented a laser beam, and named it Trinity. This beam is able to shoot a ray of 'm' energy units that hits the activation energy of an atom and splits it into 2 parts of variable energies following the law of conservation of energy (The parts may have any energy as Robert pleases, as long as conservation of energy is followed). Please note that when an atom with energy 'x' is hit with Trinity, its energy rises by 'm' hence becomes (x+'m'). Robert now wants to test his theory of whether he can equalize the energy levels of all atoms, on a smaller scale. He has 'n' atoms, each of which has an energy level of A_i (1 Input Format First line: An integer t — the number of test cases (1 For eac