Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105862 | 李谨睿 | 19买画笔 | C++ | Wrong Answer | 0 MS | 276 KB | 315 | 2025-01-14 15:20:33 |
#include<iostream> using namespace std; int main(){ int n;//9 cin>>n; int a[101];//101 for(int i=1;i<=100;i++){ a[i]=0; } for(int i=0;i<n;i++){ int b; cin>>b; a[b]++; } for(int i=1;i<=100;i++){ if(a[i]%2==1){ cout<<a[i]<<" "; } } return 0; }
------Input------
9 1 1 9 11 3 3 11 5 9
------Answer-----
5
------Your output-----
1