CodeMentor.
Ask AIProblemsLearnC++TCSCore CSHRProgress
0Lv 1
ProblemsHackerRank Warmup

Plus Minus

Easy
HackerRank
5/12
EasyHackerRank Warmup

Plus Minus

Count positives, negatives, and zeros. Print each count divided by n, with 6 digits after the decimal.

Examples

Example 1

Input

6
-4 3 -9 0 4 1

Output

0.500000
0.333333
0.166667

Stuck? Take a nudge

C++17Autosaves