-->
当前位置:首页 > 题库

PROGRAMMING:Average length of search

Luz5年前 (2021-05-10)题库483
Programming statistics, the length of N ordered array binary search, search success and failure of the average search length. Note that it is expressed as the total search length divided by the total number of searches.
###Input example:
Enter the number of elements in the array: a positive integer:
```in
six
```
###Output example:
Output the average length of successful search in the first line and the average length of failed search in the second line
(no calculation or reduction is required, only output in fractional form)
```out
14/6
27/7
```






answer:If there is no answer, please comment