Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153461 陈彦霖 19买画笔 C++ Accepted 1 MS 284 KB 291 2026-05-17 13:21:13

Tests(5/5):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int b[1001] = {0}; int n; cin >> n; for (int i = 1; i <= n; i++) { int x; cin >> x; b[x] = b[x] + 1; } for (int i = 1; i <= 100; i++) { if (b[i] % 2 == 1) { cout << i; break; } } return 0; }