Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
37316 | IKUN(ZHC) | 查找特定的值 | C++ | Accepted | 0 MS | 256 KB | 266 | 2024-01-20 10:07:52 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n; int num[10010]; for(int i=1;i<=n;i++){ cin>>num[i]; } cin>>m; for(int j=1;j<=m;j++){ if(m=num[j]){ cout<<m; return 0; } } cout<<"-1"; return 0; }