Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
37296 zhouhuanyu 玙静 查找特定的值 C++ Accepted 0 MS 252 KB 268 2024-01-20 09:18:33

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int a[10001]; int main(){ int n; cin >> n; for(int i = 1; i <= n; i++){ cin >> a[i]; } int x; cin >> x; for(int i = 1; i <= n; i++){ if(a[i] == x){ cout << i; break; } } return 0; }


Judgement Protocol: