Submission #30448888
Source Code Expand
N = int(input())
An = list(map(int, input().split()))
numbers = list(range(2001))
for a in An:
try:
numbers.remove(a)
except:
pass
print(min(numbers))
Submission Info
| Submission Time | |
|---|---|
| Task | B - Mex |
| User | steek79 |
| Language | Python (3.8.2) |
| Score | 200 |
| Code Size | 190 Byte |
| Status | AC |
| Exec Time | 57 ms |
| Memory | 9268 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 | 8852 KiB |
| 001.txt | AC | 18 ms | 9004 KiB |
| 002.txt | AC | 30 ms | 9008 KiB |
| 003.txt | AC | 38 ms | 9156 KiB |
| 004.txt | AC | 34 ms | 9080 KiB |
| 005.txt | AC | 30 ms | 9004 KiB |
| 006.txt | AC | 35 ms | 9152 KiB |
| 007.txt | AC | 19 ms | 8864 KiB |
| 008.txt | AC | 23 ms | 9160 KiB |
| 009.txt | AC | 44 ms | 9268 KiB |
| 010.txt | AC | 42 ms | 9088 KiB |
| 011.txt | AC | 57 ms | 9096 KiB |
| 012.txt | AC | 55 ms | 9172 KiB |
| 013.txt | AC | 56 ms | 9052 KiB |
| example0.txt | AC | 18 ms | 8864 KiB |
| example1.txt | AC | 24 ms | 9136 KiB |