Sequence Search
https://acs.jxnu.edu.cn/problem/NOIOPJENGLISH25
1000ms 65536K
描述:
Given a sequence S of N numbers. Find the least index id so that S[id] equals to K.
给出一个队列s包含n个数,找出等于k的最后的数的序号
输入:
First line: two positive integers N (N <= 100) and K (K <= 100000).
Second line: N positive integers (<= 100000).
第一行:两个正整数n和k
第二行:n个正整数
输出:
One integer id.
一个数表示id
样例输入:
8 5 2 4 7 8 5 3 9 5
样例输出:
5