Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82114 sh25_chenyj 查找特定的值 C++ 通过 0 MS 244 KB 316 2026-01-10 12:38:27

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int ls[n]; // cout << fixed << setprecision(10) << ce(a); for(int i = 0; i < n; i++){ cin>>ls[i]; } int m, cnt = 0; cin>>m; for(int i = 0; i < n; i++){ if(ls[i] == m){ cout<<i+1; break; } } return 0; }


测评信息: