| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 127160 | 周震东 | 折半查找法 | C++ | Accepted | 100 | 1 MS | 320 KB | 222 | 2024-01-25 08:07:50 |
#include<bits/stdc++.h> using namespace std; long long n , x , a[111111] , m; int main(){ cin >> n; for(long long i = 1;i <= n;i++){ cin >> x; a[x] = i; } cin >> m; cout << (a[m]?a[m]:-1); return 0; }