Submission #17312579


Source Code Expand

Copy
import sys
from heapq import *

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N, *P = map(int, read().split())

MAX = 200000
ng = [0] * (MAX + 10)

ans = 0
for x in P:
    ng[x] = 1
    while ng[ans]:
        ans += 1
    print(ans)

Submission Info

Submission Time
Task C - Neq Min
User maspy
Language Python (3.8.2)
Score 300
Code Size 309 Byte
Status
Exec Time 163 ms
Memory 27852 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
× 2
× 12
Set Name Test Cases
Sample 01.txt, 02.txt
All 01.txt, 02.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 20.txt
Case Name Status Exec Time Memory
01.txt 22 ms 10312 KB
02.txt 23 ms 10144 KB
11.txt 147 ms 27792 KB
12.txt 145 ms 27812 KB
13.txt 163 ms 27792 KB
14.txt 160 ms 27788 KB
15.txt 156 ms 27616 KB
16.txt 155 ms 27744 KB
17.txt 156 ms 27852 KB
18.txt 153 ms 27836 KB
19.txt 123 ms 12128 KB
20.txt 22 ms 10308 KB