Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140866 王培臻 19买画笔 C++ Accepted 1 MS 1052 KB 281 2025-12-20 14:00:34

Tests(5/5):


Code:

#include <bits/stdc++.h> using namespace std; int main (){ long long s,a[100001]={0},d; cin>>s; for(int i=1;i<=s;i++){ cin>>d; a[d]++; } long long f=0,g; for(int i=1;i<=1000;i++){ if(a[i]%2!=0){ g=i; } } cout<<g; return 0; }