Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
126914 | 袁梓豪 | 19买画笔 | C++ | Accepted | 1 MS | 276 KB | 269 | 2025-07-22 14:53:52 |
#include <bits/stdc++.h> using namespace std; int main() { int a[1010]={0}, n, x,ma = -999999; cin >> n; for (int i = 1; i <= n; i++) { cin >> x; a[x]++; } for (int i = 1000; i >= 0; i--) { if (a[i]%2!=0) { cout<<i; } } return 0; }