{"problem":{"name":"Neq Min","description":{"content":"Given is a number sequence of length $N$: $p_1, ..., p_N$. For each $i=1, 2, ..., N$, find the minimum non-negative integer that is not equal to any of the numbers $p_1, ..., p_i$.","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"hhkb2020_c"},"statements":[{"statement_type":"Markdown","content":"Given is a number sequence of length $N$: $p_1, ..., p_N$.\nFor each $i=1, 2, ..., N$, find the minimum non-negative integer that is not equal to any of the numbers $p_1, ..., p_i$.\n\n## Constraints\n\n*   $1 \\leq N \\leq 200,000$\n*   $0 \\leq p_i \\leq 200,000$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$\n$p_1$ $...$ $p_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"hhkb2020_c","tags":[],"sample_group":[["4\n1 1 0 2","0\n0\n2\n3\n\n*   The minimum non-negative integer that is not equal to $p_1=1$ is $0$.\n*   The minimum non-negative integer that is not equal to any of $p_1=1, p_2=1$ is $0$.\n*   The minimum non-negative integer that is not equal to any of $p_1=1, p_2=1, p_3=0$ is $2$.\n*   The minimum non-negative integer that is not equal to any of $p_1=1, p_2=1, p_3=0, p_4=2$ is $3$."],["10\n5 4 3 2 1 0 7 7 6 6","0\n0\n0\n0\n0\n6\n6\n6\n8\n8"]],"created_at":"2026-03-03 11:01:14"}}