| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159920 | Kevin | 寻找第二小的数 | C++ | Runtime Error | 1 MS | 264 KB | 464 | 2026-09-12 11:39:20 |
#include<iostream> using namespace std; int a[105]; int main() { int c; int n; cin>>c; int t; for(int i=1;i<=c;i++){ for(int j=0;j<=100;j++){ a[j]=0; } int flag=0; cin>>n; int s=0; for(int j=1;j<=n;j++){ cin>>t; a[t]++; } for(int j=0;j<=100;j++){ if(a[j]!=0){ s++; } if(s==2) { flag=1; cout<<j<<endl; break; } } if(flag==0){ cout<<"NO"<<endl; } } return 0; }
Runtime Error:[ERROR] A not allowed system call. Call ID:14