| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81201 | 陈俊洁 | 处理随机数 | C++ | Output Limit Exceeded | 0 MS | 260 KB | 257 | 2024-07-12 10:56:36 |
#include<bits/stdc++.h> using namespace std; int main() { int a[1001]; int n,k,sum=0; for (int i = 0; i < n; i++) { cin >>k; if(a[k]==0) { a[k]=1; sum++; } } cout<<sum<<endl; for(int j=1;j<=1000;j++){ cout<<j<<" "; } }