Submission #68112311


Source Code Expand

N, M = map(int, input().split())

A = list(map(int, input().split()))

B = list(map(int, input().split()))
for b in B:
    if b in A:
        A[A.index(b)] = -1

for a in A:
    if a != -1:
        print(a, end=' ')
print()

Submission Info

Submission Time
Task B - Search and Delete
User myuuuu
Language Python (PyPy 3.10-v7.3.12)
Score 200
Code Size 235 Byte
Status AC
Exec Time 56 ms
Memory 76712 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 28
Set Name Test Cases
Sample example_00.txt, example_01.txt
All example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt
Case Name Status Exec Time Memory
example_00.txt AC 56 ms 76328 KiB
example_01.txt AC 55 ms 76488 KiB
hand_00.txt AC 55 ms 76160 KiB
hand_01.txt AC 55 ms 76320 KiB
hand_02.txt AC 55 ms 76564 KiB
hand_03.txt AC 55 ms 76212 KiB
hand_04.txt AC 55 ms 76360 KiB
hand_05.txt AC 54 ms 76464 KiB
random_00.txt AC 55 ms 76480 KiB
random_01.txt AC 56 ms 76320 KiB
random_02.txt AC 56 ms 76316 KiB
random_03.txt AC 55 ms 76180 KiB
random_04.txt AC 55 ms 76396 KiB
random_05.txt AC 55 ms 76448 KiB
random_06.txt AC 55 ms 76500 KiB
random_07.txt AC 55 ms 76460 KiB
random_08.txt AC 55 ms 76624 KiB
random_09.txt AC 55 ms 76592 KiB
random_10.txt AC 55 ms 76412 KiB
random_11.txt AC 55 ms 76712 KiB
random_12.txt AC 55 ms 76324 KiB
random_13.txt AC 55 ms 76460 KiB
random_14.txt AC 55 ms 76404 KiB
random_15.txt AC 55 ms 76600 KiB
random_16.txt AC 55 ms 76312 KiB
random_17.txt AC 55 ms 76460 KiB
random_18.txt AC 56 ms 76440 KiB
random_19.txt AC 55 ms 76420 KiB