BETA
Learning Output
Submissions: 271   Accuracy:

47.6%

  Difficulty: Basic
     

Being a Programmer you have to learn how to make your output looks better. According to the company, its company programmers have to present its output in a different manner as : If your output is 10.000000 you can save the decimal places and thus your output becomes 10. Now u have the learn the way to output. You are given elements of an array A[N] and you have to divide N by total no. of +ve integers, N by total no. of -ve integers and N by total no. of zero value integers.

Input : 
The first line of input contains an integer T denoting the no of test cases. Then T test cases follow. 
Second line contains N - array size. Third line contains the elements of array.

Output : 
For each test case in a new line print the division value of

N by Total no. of +ve integers
N by Total no. of -ve integers
N by Total no. of zero value integers

Constraints :
1 ≤ T ≤ 50
1 ≤ N ≤ 100
1 ≤ A[i] ≤ 1000

Input : 
1
10
7 7 7 7 7 7 -9 -9 -9 0

Output : 
1.66667
3.33333
10

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Mohit Gupta...OMG :)
Author: Mohit Gupta 4


Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.