結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー koyoprokoyopro
提出日時 2015-09-20 11:33:04
言語 Python2
(2.7.18)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 248 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 6,488 KB
実行使用メモリ 8,792 KB
最終ジャッジ日時 2023-09-26 14:02:36
合計ジャッジ時間 1,218 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,668 KB
testcase_01 AC 14 ms
8,792 KB
testcase_02 AC 14 ms
8,676 KB
testcase_03 AC 14 ms
8,668 KB
testcase_04 AC 15 ms
8,788 KB
testcase_05 AC 14 ms
8,788 KB
testcase_06 AC 14 ms
8,724 KB
testcase_07 AC 14 ms
8,792 KB
testcase_08 AC 13 ms
8,588 KB
testcase_09 AC 14 ms
8,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

import random

P, C = map(int, raw_input().split())

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

KP = 1.0 * sum(primes) / len(primes)
KC = 1.0 * sum(composite) / len(composite)

print "%.9f" % (KP ** P * KC ** C)
0