| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 54324 | 张思存 | 与指定数字相同的数的个数 | C++ | Wrong Answer | 0 MS | 244 KB | 345 | 2024-10-27 10:24:41 |
#include<bits/stdc++.h> using namespace std; int main(){ int n, m; cin >> n; int a[n]; for(int i = 0; i < n; i++){ cin >> a[i]; } cin >> m; for(int i = 0; i < n; i++){ if(a[i] == m){ cout << i + 1 << endl; return 0; } } cout << -1 << endl; return 0; }