Find the Output

Question to Solve

Try to analyse the given input, output and write a program to take an input and give the appropriate output

Input 1
7
1 3 5 0 0 2 1

Output 1
28.57%   28.57%   14.28%   14.28%   14.28%

Input 2
4
1 2 3 1

Output 2
50%   25%   25%

Input 3
3
0 0 1

Output 3
66.66%   33.33%

Input 4
10
9 0 8 7 4 3 5 2 1 6

Output 4
10%   10%   10%   10%   10%   10%   10%   10%   10%   10%  

Here input consists of
first line -1 < N < 100K
second line - N integers where each integer 0 < i < 10


Picking Numbers

Given an array of integers, find and print the maximum number of integers you can select from the array such that the absolute difference between any two of the chosen image is.

Sample Input 0
Output 0
Explanation 1
Sample Input 1
Output 1
Explanation 1