| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61832 | 许铭锐 | 处理随机数 | C++ | Time Limit Exceeded | 1000 MS | 272 KB | 338 | 2023-12-10 17:12:30 |
#include<iostream> #include<cstdio> using namespace std; int main() { int t[1001]= {0}; int n,m=0,shu; cin>>n; for(int i=0; i<n; i++) { cin>>shu; t[shu]++; } for(int i=0; i,n; i++) { if(t[i]!=0) { m++; } } cout<<m; for(int i=0; i,n; i++) { if(t[i]!=0) { cout<<i; } } return 0; }