Completed Start: 10 Nov 2024, 09:00 End: 10 Nov 2024, 13:00 Timezone: Asia/Almaty

Ray behaving bad 2

10s
1GiB

After being pulled in, the meteorites fly further into space roughly along one straight line. However, while running through the corridors, Ray kept bumping into the gravitational matrix, so some meteorites flew off deviating from the common line by more than 40%. You know the coordinates of the meteorites. The coordinates of each meteorite are three real numbers (x, y, z), and the z coordinate of every meteorite equals 1.

The number n, the number of meteorites, is given. Each of the next n lines contains 4 real numbers separated by spaces: the meteorite number and its coordinates x, y, z.

Determine which meteorites deviated and output their numbers separated by spaces.

Login to submit

You need to be signed in to submit solutions and track your submissions.

Log In