Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
31611 | 惠子铭 | 整数去重 | C++ | Accepted | 0 MS | 324 KB | 290 | 2023-11-19 19:58:39 |
#include <iostream> using namespace std; int main() { int n, i, x, table[20001]={0}; cin >> n; for (i=0; i<n; i++){ cin >> x; table[x]++; if (table[x] == 1){ cout << x << " "; } } cout << endl; return 0; }