Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
126878 杜洛雨泽 19买画笔 C++ Accepted 1 MS 268 KB 287 2025-07-22 13:37:51

Tests(5/5):


Code:

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