結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー Ribura
提出日時 2020-05-30 00:17:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 1,000 ms
コード長 366 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-06 09:38:12
合計ジャッジ時間 2,442 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

k = int(readline())
cnt = 0
prime_list = [2, 3, 5, 7, 11, 13]
check_list = [4, 6, 8, 9, 10, 12]
for prime in prime_list:
    for check in check_list:
        if k == prime * check:
            cnt += 1
print(cnt / 36)
0