Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140871 杜禹轩 19买画笔 C++ Accepted 0 MS 276 KB 251 2025-12-20 14:04:43

Tests(5/5):


Code:

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