Submission #51044925


Source Code Expand

#ABC344_20240309_C
N=int(input())
A=list(map(int,input().split()))
M=int(input())
B=list(map(int,input().split()))
L=int(input())
C=list(map(int,input().split()))
Q=int(input())
X=list(map(int,input().split()))
D={}
SA=set(A)
SB=set(B)
SC=set(C)
for a in SA:
    for b in SB:
        for c in SC:
            D[a+b+c]=1
for x in X:
    if(x in D):
        print("Yes")
    else:
        print("No")

Submission Info

Submission Time
Task C - A+B+C
User Konini
Language Python (PyPy 3.10-v7.3.12)
Score 250
Code Size 421 Byte
Status AC
Exec Time 237 ms
Memory 282048 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 250 / 250
Status
AC × 1
AC × 23
Set Name Test Cases
Sample sample_01.txt
All min.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, random_20.txt, random_21.txt, sample_01.txt
Case Name Status Exec Time Memory
min.txt AC 55 ms 76608 KiB
random_01.txt AC 102 ms 115668 KiB
random_02.txt AC 78 ms 93072 KiB
random_03.txt AC 98 ms 115712 KiB
random_04.txt AC 201 ms 231552 KiB
random_05.txt AC 98 ms 120468 KiB
random_06.txt AC 82 ms 105268 KiB
random_07.txt AC 92 ms 110204 KiB
random_08.txt AC 208 ms 252624 KiB
random_09.txt AC 100 ms 111220 KiB
random_10.txt AC 109 ms 122384 KiB
random_11.txt AC 148 ms 165860 KiB
random_12.txt AC 231 ms 248776 KiB
random_13.txt AC 106 ms 117152 KiB
random_14.txt AC 167 ms 187952 KiB
random_15.txt AC 155 ms 175696 KiB
random_16.txt AC 231 ms 261180 KiB
random_17.txt AC 202 ms 280400 KiB
random_18.txt AC 237 ms 281580 KiB
random_19.txt AC 202 ms 280896 KiB
random_20.txt AC 204 ms 282048 KiB
random_21.txt AC 206 ms 281968 KiB
sample_01.txt AC 56 ms 76452 KiB