| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 68094 | 安一宸 | 寻找第二小的数 | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 322 | 2023-02-02 14:22:35 |
#include<bits/stdc++.h> using namespace std; int c,n,a[20],t; int main(){ cin>>c; while(c--){ cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } sort(a,a+n); for(int j=0;j<n-1;j++){ if(a[j]!=a[j+1]){ t=1; cout<<a[j+1]<<endl; break; } } if(t!=1) cout<<"NO"; } return 0; }