Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77290 sh25_shenpy 查找特定的值 C++ 通过 0 MS 256 KB 292 2025-12-21 21:10:27

Tests(1/1):


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


测评信息: