where is my num?
Submit solution
Points:
50 (partial)
Time limit:
1.0s
Memory limit:
256M
Authors:
Problem types
Allowed languages
Java 19, Java 8
題目說明
使用者輸入五個整數,之後再輸入一整數,若輸入的值在數列裡,則回傳找到了! 在第幾位
,若不在數列裡,則回傳找不到:<
輸入限制: 整數(int) 範圍: -10000 到 10000
輸入
五個整數(存數列)與一個整數A(假設值)
輸出
若A在五個整數裡: 找到了! 在第幾位
(輸出找到的第一位即可)
若不在: 找不到:<
sample input1
1 2 3 4 5 1
sample output1
找到了! 在第0位
sample input2
1 2 3 4 5 6
sample output2
找不到:<
sample input3
1 1 2 3 4 1
sample output3
找到了! 在第0位
Comments