E. Collisions time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output On a number line there are n balls. At time moment 0 for each ball the following data is known: its coordinate xi, speed vi (p…