Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153412 李沐阳 19买画笔 C++ Wrong Answer 1 MS 668 KB 234 2026-05-17 11:08:57

Tests(2/5):


Code:

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


Run Info:

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