提出 #76708404


ソースコード 拡げる

a = [int(_) for _ in input().split()]
b = [int(_) for _ in input().split()]
c = [int(_) for _ in input().split()]

ans = 0

for i in range(6):
    for j in range(6):
        for k in range(6):
            x = (a[i], b[j], c[k])
            if 4 in x and 5 in x and 6 in x:
                ans += 1
print(ans / 6**3)

提出情報

提出日時
問題 D - 456
ユーザ ytz
言語 Python (PyPy 3.11-v7.3.20)
得点 200
コード長 327 Byte
結果 AC
実行時間 53 ms
メモリ 84616 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 53 ms 84384 KiB
random_02.txt AC 51 ms 84164 KiB
random_03.txt AC 51 ms 84468 KiB
random_04.txt AC 51 ms 84380 KiB
random_05.txt AC 50 ms 84296 KiB
random_06.txt AC 50 ms 84356 KiB
random_07.txt AC 51 ms 84604 KiB
random_08.txt AC 50 ms 84232 KiB
random_09.txt AC 50 ms 84180 KiB
random_10.txt AC 50 ms 84296 KiB
random_11.txt AC 51 ms 84616 KiB
random_12.txt AC 51 ms 84196 KiB
sample_01.txt AC 50 ms 84164 KiB
sample_02.txt AC 51 ms 84404 KiB