Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
108799 杜洛雨泽 整数去重 C++ Accepted 1 MS 284 KB 217 2025-01-22 11:14:23

Tests(3/3):


Code:

# include<bits/stdc++.h> using namespace std; int t[5010], n, a; int main() { cin >> n; for (int i = 0; i < n; i++) { cin >> a; if (t[a] == 0) { t[a] = 1; cout << a << " "; } } return 0; }