Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37296 zhouhuanyu 玙静 查找特定的值 C++ 通过 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; }


测评信息: