| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 74995 | sh25_wangtaojie | 整数去重 | C++ | Accepted | 0 MS | 256 KB | 557 | 2025-12-05 14:55:33 |
#include <iostream> using namespace std; int main() { int a,x,j; cin>>a; int arr[666]; bool out=true; for (int i = 0; i < a; i++) { cin >> x; arr[i]=x; } for (int i = 0; i <a; i++) { j=i-1; out=true; while(j>=0){ if(arr[i]==arr[j]){ out=false; } j=j-1; } if(out==true){ cout<<arr[i]<<" "; } } return 0; }