A sequence of integers is called a geometric sequence if the ratio of consecutive numbers is constant.
For example, (3,6,12,24) is a geometric sequence (each term is equal to twice the previous number).
Now, with such a sequence, we will shuffle it and remove some of the elements.
Given the result of such a transformation, try to recover the "geometric ratio" of the original sequence, i.e. the ratio of consecutive numbers.
If there are multiple possible ratios, output the one with the greatest absolute value. If there is still a tie, output the positive one.
If there is no such sequence, output 0.
The ratio of the original sequence (if one exists). The relative error of the answer must be within 10-9. That is, (abs(answer - expected) / expected < 10-9).
The original sequence could have been (1,3,9,27,...) or (...,27,9,3,1); the former has the greater ratio (3).