| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 80089 | sh25_zhuwy | 明明的随机数 | C++ | Accepted | 0 MS | 252 KB | 343 | 2026-01-04 14:59:21 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a[n],ex[1000]={0},cnt=0; for(int i=0;i<n;i++){ cin>>a[n]; if(ex[a[n]-1]==0) cnt++; ex[a[n]-1]=1; } cout<<cnt<<endl; for(int i=0;i<1000;i++){ if(ex[i]==1) cout<<i+1<<" "; } return 0; }