結果
| 問題 | No.211 素数サイコロと合成数サイコロ (1) |
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 18:09:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 415 bytes |
| 記録 | |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 95,212 KB |
| 実行使用メモリ | 78,592 KB |
| 最終ジャッジ日時 | 2026-07-11 18:51:15 |
| 合計ジャッジ時間 | 4,014 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | MLE * 33 |
ソースコード
primes = [2, 3, 5, 7, 11, 13]
composites = {4, 6, 8, 9, 10, 12}
K = int(input())
count = 0
if K != 0:
for p in primes:
if p == 0:
continue
if K % p != 0:
continue
c = K // p
if c in composites:
count += 1
probability = count / 36
print("{0:.20f}".format(probability).rstrip('0').rstrip('.') if probability != 0 else "0.00000000000000000")
gew1fw