Submission #75427385


Source Code Expand

As = (
    map(int, input().split())
    for _ in range(3)
    )
Bs = tuple(([0, 0, 0]for i in range(3)))
for n, i in enumerate(As):
    for jj in i:
        if 3<jj:
            Bs[n][jj-4]+=1
cnt = 0
conv = {0, 1, 2}
for i in conv:
    con = conv-{i}
    for jj in con:
        cnt += Bs[0][i]*Bs[1][jj]*Bs[2][tuple(con-{jj})[0]]

print(cnt/216)

Submission Info

Submission Time
Task B - 456
User hydroxed_sil
Language Python (PyPy 3.11-v7.3.20)
Score 200
Code Size 365 Byte
Status AC
Exec Time 54 ms
Memory 79848 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 14
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All 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, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt AC 51 ms 79848 KiB
random_02.txt AC 51 ms 79636 KiB
random_03.txt AC 50 ms 79680 KiB
random_04.txt AC 51 ms 79600 KiB
random_05.txt AC 51 ms 79744 KiB
random_06.txt AC 54 ms 79720 KiB
random_07.txt AC 51 ms 79648 KiB
random_08.txt AC 51 ms 79608 KiB
random_09.txt AC 51 ms 79596 KiB
random_10.txt AC 52 ms 79268 KiB
random_11.txt AC 51 ms 79592 KiB
random_12.txt AC 51 ms 79596 KiB
sample_01.txt AC 52 ms 79648 KiB
sample_02.txt AC 51 ms 79744 KiB