Learning Output
Submissions: 418   Accuracy:


  Difficulty: Basic   Marks: 1

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 : 
7 7 7 7 7 7 -9 -9 -9 0

Output : 

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

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

If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.

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

to report an issue on this page.