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

PROGRAMMING:Binary search

Luz5年前 (2021-05-10)题库481
Use binary search to find the subscript of the given number in the array
###Input format:
The first line of input n and M means that there are n data in the array, and M means to find m numbers
###Output format:
All output is done in one line with no extra spaces and carriage returns at the end of the line.
###Input example:
```in
5 5
1 2 3 4 5
1 2 3 4 5```
###Output example:
```out
0 1 2 3 4
```






answer:If there is no answer, please comment