Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153423 王晏林 19买画笔 C++ Accepted 4 MS 4176 KB 231 2026-05-17 11:14:53

Tests(5/5):


Code:

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