Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
76002 邓嘉懿 19买画笔 C++ Accepted 0 MS 272 KB 260 2024-06-01 12:17:24

Tests(5/5):


Code:

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