| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61556 | 李星熠 | 处理随机数 | C++ | Wrong Answer | 1 MS | 660 KB | 295 | 2023-12-10 11:19:55 |
#include<bits/stdc++.h> using namespace std; int main() { int n,tmp,m; cin>>n; m = 0; int t[100001]={}; for(int i = 0; i < n;i++){ cin>>tmp; t[tmp]++; if(t[tmp] ==1){ m++; } } cout<<m<<endl; for(int i = 0; i <= 100000;i++){ if(t[i] !=0){ cout<<i<<""; } } }
------Input------
9 10 29 39 67 58 48 29 57 23
------Answer-----
8 10 23 29 39 48 57 58 67
------Your output-----
8 1023293948575867