| 比赛 | ICPC复现(AI数据) | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 停车难题 | 最终得分 | 100 |
| 用户昵称 | dream | 运行时间 | 0.028 s |
| 代码语言 | C++ | 内存使用 | 3.68 MiB |
| 提交时间 | 2026-05-26 19:15:15 | ||
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int n;
int main(){
freopen("tingche.in","r",stdin);
freopen("tingche.out","w",stdout);
ios::sync_with_stdio(0);
cin.tie(0);
int lst=-1;
cin>>n;
while(n--){
int x;
cin>>x;
if(x>lst+1){
cout<<lst+1;
return 0;
}
lst=x;
}
cout<<lst+1;
return 0;
}