| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 68086 | 朱宸瑜 | 寻找第二小的数 | C++ | Wrong Answer | 0 | 0 MS | 252 KB | 347 | 2023-02-02 14:04:37 |
#include <bits/stdc++.h> using namespace std; int small,sesmall,num,c,n; int main(){ cin>>c; while(c--){ small=101; sesmall=101; cin>>n; while(n--){ cin>>num; if(num<small) small=num; if(num>small&&num<sesmall) sesmall=num; } if(sesmall<=101) cout<<sesmall<<endl; else cout<<"NO"<<endl; } return 0; }