Some error occured while loading page for you. Please try again.
Given an array of integers, calculate the fractions of its elements that are positive, negative, and are zeros. Print the decimal value of each fraction on a new line.
Note: This challenge introduces precision problems. The test cases are scaled to six decimal places, though answers with absolute error of up to are acceptable.
The first line contains an integer, , denoting the size of the array.
The second line contains space-separated integers describing an array of numbers .
You must print the following lines:
-4 3 -9 0 4 1
There are positive numbers, negative numbers, and zero in the array.
The proportions of occurrence are positive: , negative: and zeros: .