| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 46422 | 杨中琦 | 寻找下标 | C++ | Accepted | 100 | 0 MS | 248 KB | 222 | 2022-07-13 13:10:37 |
#include<iostream> using namespace std; int main(){ short a,b[100],i; cin>>a; for(i=0;i<a;i++) cin>>b[i]; for(i=0;i<a;i++) { if(b[i]==i){ cout<<i; break; } if(i==a-1)cout<<"N"; } return 0; }