Submission #39608414
Source Code Expand
n = int(input())
ls = [int(i)-1 for i in input().split()]
flags = [False] * n
for i in range(n):
if not flags[i]:
flags[ls[i]] = True
count = 0
ans = []
for i in range(n):
if not flags[i]:
count += 1
ans.append(i+1)
print(count)
for i in range(len(ans)):
print(ans[i], end=' \n'[i == len(ans)-1])
Submission Info
| Submission Time | |
|---|---|
| Task | B - Call the ID Number |
| User | shinever |
| Language | PyPy3 (7.3.0) |
| Score | 200 |
| Code Size | 346 Byte |
| Status | AC |
| Exec Time | 186 ms |
| Memory | 103420 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 | 61 ms | 61848 KiB |
| 001.txt | AC | 186 ms | 103420 KiB |
| 002.txt | AC | 101 ms | 100128 KiB |
| 003.txt | AC | 154 ms | 100172 KiB |
| 004.txt | AC | 149 ms | 96876 KiB |
| 005.txt | AC | 82 ms | 74900 KiB |
| 006.txt | AC | 117 ms | 87960 KiB |
| 007.txt | AC | 111 ms | 84304 KiB |
| 008.txt | AC | 123 ms | 89640 KiB |
| 009.txt | AC | 164 ms | 100144 KiB |
| 010.txt | AC | 160 ms | 100136 KiB |
| 011.txt | AC | 161 ms | 100012 KiB |
| 012.txt | AC | 164 ms | 100092 KiB |
| 013.txt | AC | 166 ms | 100000 KiB |
| example0.txt | AC | 49 ms | 61880 KiB |
| example1.txt | AC | 52 ms | 61916 KiB |