#3510. 数组元素的查找
数组元素的查找
Background
一维数组课本例子
Description
给你m个整数,查找其中有无值为n的数,有则输出该数第一次出现的位置,没有则输出-1。
Format
Input
Two integers x and y, satisfying .
Output
n的位置或-1
Samples
4
1233
3
3
Limitation
1s, 1024KiB for each test case.
一维数组课本例子
给你m个整数,查找其中有无值为n的数,有则输出该数第一次出现的位置,没有则输出-1。
Two integers x and y, satisfying 0≤x,y≤32767 .
n的位置或-1
4
1233
3
3
1s, 1024KiB for each test case.