結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー lam6er
提出日時 2025-04-15 20:51:13
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 288 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 82,052 KB
実行使用メモリ 80,896 KB
最終ジャッジ日時 2025-04-15 20:52:14
合計ジャッジ時間 4,477 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other MLE * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal

K = int(input())

prime = [2, 3, 5, 7, 11, 13]
composite = [4, 6, 8, 9, 10, 12]

count = 0

for p in prime:
    for c in composite:
        if p * c == K:
            count += 1

probability = Decimal(count) / Decimal(36)
print("{0:.17f}".format(probability))
0