提出 #75427385


ソースコード 拡げる

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)

提出情報

提出日時
問題 B - 456
ユーザ hydroxed_sil
言語 Python (PyPy 3.11-v7.3.20)
得点 200
コード長 365 Byte
結果 AC
実行時間 54 ms
メモリ 79848 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 14
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
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