Maximum average Sequence
题号:NC15884
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
Special Judge, 64bit IO Format: %lld

题目描述

It’s universally acknowledged that there’re innumerable trees in the campus of HUST.
Given a sequence of numbers a1,a2,…,an, please find the maximum average sequence of a subsequence of those numbers. The definition of average sequence is that the number of pairs that satisfy u divides v or v divides u, divides by the length of the sequence.
For example, in the sequence {1,2,3,4}, the maximum average sequence is {1,2,4}. There are three pairs (<1,2>,<1,4>,<2,4>) that satisfy u divides v or v divides u, and the length of the sequence is 3, so the answer is 3÷3=1.

输入描述:

There is an integer N(1≤N≤100) in the first line, indicating the length of the sequence.
Then there are N integers xi (1≤xi≤109) in the next line, the elements of the sequence.

输出描述:

Output the answer of the problem, Let the standard answer be a, and your answer is b, your answer will be considered as correct if and only if 
示例1

输入

复制
4
1 2 3 4

输出

复制
1.0000000000
示例2

输入

复制
2
3 5

输出

复制
0.0000000000