Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153955 张浩然 19买画笔 C++ Wrong Answer 1 MS 268 KB 272 2026-05-24 11:40:06

Tests(0/5):


Code:

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


Run Info:

------Input------
9 1 1 9 11 3 3 11 5 9
------Answer-----
5
------Your output-----
3