| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 128329 | baim. | 折半查找法 | C++ | Accepted | 100 | 1 MS | 288 KB | 189 | 2024-01-25 16:46:59 |
#include<bits/stdc++.h> using namespace std; int n,x,a[10005],m; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>x; a[x]=i; } cin>>m; cout<<(a[m]?a[m]:-1); return 0; }