| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 40259 | 奚晨瑞 | 整数去重 | C++ | Accepted | 1 MS | 252 KB | 276 | 2024-02-09 14:43:53 |
#include<iostream> using namespace std; int a[20000]; int main() { int n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; bool b=0; for(int j=0;j<i;j++){ if(a[i]==a[j]){ b=1; break; } } if(b==0){ cout<<a[i]<<" "; } } return 0; }