結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー matsu7874matsu7874
提出日時 2015-10-12 00:34:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 8,020 KB
最終ジャッジ日時 2023-09-28 12:26:15
合計ジャッジ時間 1,001 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,868 KB
testcase_01 WA -
testcase_02 AC 17 ms
7,784 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

P,C=map(int, input().split())
p=[2,3,5,7,11,13]
c=[4,6,8,9,10,12]
e=0
if P>0 and C>0:
    e = sum(p)/6*P * sum(c)/6*C
elif P>0:
    e = sum(p)/6*P
elif C>0:
    e = sum(c)/6*C
print(e)
0