ログイン
新規登録
AtsuoCoder Waseda Tour Finals 2025
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 e9a6bfe8-96ee-4a97-8eca-c31d450035d7
コード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for (int i =0; i < (n); i++) int main() { int n; cin >> n; vector<int> a(n); rep(i,n) cin >> a[i]; int x=0; while(true) { bool exist = false; rep(i,n) if (a[i] == x) exist = true; if (!exist){ cout << x << endl; return 0; } x++; } return 0; }
結果
問題
点数
言語
結果
実行時間
メモリ
F - TLE
0
C++
TLE
2100 ms
3724 KiB