ログイン
新規登録
AtsuoCoder Waseda Tour Finals 2025
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 15e24767-fd57-4a7e-afa3-e6457424cf0c
コード
#include <iostream> #include <vector> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll n; cin >> n; vector<ll> a(n); for (ll i = 0; i < n; i++) cin >> a[i]; vector<bool> seen(n + 1, false); for (ll x : a) { if (0 <= x && x <= n) seen[x] = true; } for (ll ans = 0; ans <= n; ans++) { if (!seen[ans]) { cout << ans << "\n"; return 0; } } }
結果
問題
点数
言語
結果
実行時間
メモリ
F - TLE
100
C++
AC
8 ms
4036 KiB