Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
108693 | 杜洛雨泽 | 整数去重 | C++ | Wrong Answer | 1 MS | 264 KB | 212 | 2025-01-21 12:52:02 |
#include<bits/stdc++.h> using namespace std; int a[1000010], n; int main() { cin >> n; for (int i = 0; i < n; i++) { cin >> a[i]; if (a[i] != a[i - 1]) { cout<<a[i]<<" "; } } return 0; }
------Input------
5 10 12 93 12 75
------Answer-----
10 12 93 75
------Your output-----
10 12 93 12 75