Home
Problem Set
Training
Contest
Homework
Discussion
Record
Ranking
Login
Language
English
한국어
简体中文
正體中文
#189. 【入门】数组元素的查找
ID: 189
Type: Default
1000ms
16MiB
Tried: 1
Accepted: 1
Difficulty: 10
Uploaded By:
cjzm
Tags>
数组问题
【入门】数组元素的查找
说明
给你m个整数,查找其中有无值为n的数,有则输出该数第一次出现的位置,没有则输出-1。
输入格式
第一行一个整数m:数的个数 ( 0 <= m <= 100 ) 第二行m个整数(空格隔开)( 这些数在 0-1000000范围内 ) 第三行为要查找的数n;
输出格式
n的位置或-1
4 1 2 3 3 3
3
来源
数组问题
Login to Submit
Discussions (0)
Files
Statistics
CLOSE
SIGN IN
Using your XMJY universal account
Username
Password
Remember me
Forgot password or username?