Submission #30552575
Source Code Expand
from itertools import count
N = int(input())
A = set(map(int, input().split()))
for i in count():
if i not in A:
print(i)
break
Submission Info
| Submission Time | |
|---|---|
| Task | B - Mex |
| User | Aruma256 |
| Language | Python (3.8.2) |
| Score | 200 |
| Code Size | 157 Byte |
| Status | AC |
| Exec Time | 24 ms |
| Memory | 9388 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, example0.txt, example1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 18 ms | 9112 KiB |
| 001.txt | AC | 17 ms | 8944 KiB |
| 002.txt | AC | 18 ms | 9388 KiB |
| 003.txt | AC | 18 ms | 9124 KiB |
| 004.txt | AC | 19 ms | 9348 KiB |
| 005.txt | AC | 24 ms | 9128 KiB |
| 006.txt | AC | 17 ms | 9128 KiB |
| 007.txt | AC | 19 ms | 9012 KiB |
| 008.txt | AC | 19 ms | 9008 KiB |
| 009.txt | AC | 17 ms | 9380 KiB |
| 010.txt | AC | 21 ms | 9124 KiB |
| 011.txt | AC | 17 ms | 9040 KiB |
| 012.txt | AC | 17 ms | 9044 KiB |
| 013.txt | AC | 16 ms | 9300 KiB |
| example0.txt | AC | 21 ms | 8848 KiB |
| example1.txt | AC | 20 ms | 8936 KiB |