| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61834 | 周梓易 | 处理随机数 | C++ | Accepted | 1 MS | 660 KB | 318 | 2023-12-10 17:14:33 |
#include<bits/stdc++.h> using namespace std; int main(){ int t[100001]={0}; int n,shu,sum=0; cin>>n; for(int i=0;i<n;i++){ cin>>shu; t[shu]++; if(t[shu]==1){ sum++; } } cout<<sum<<endl; for(int i=0;i<=100000;i++){ if(t[i]!=0){ cout<<i<<" "; } } return 0; }