結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー ktrk15ktrk15
提出日時 2015-05-22 22:53:48
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 6,704 KB
実行使用メモリ 6,492 KB
最終ジャッジ日時 2023-09-20 09:46:28
合計ジャッジ時間 838 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

P,C = raw_input().split(' ')
sosu = [2,3,5,7,11,13]
gouseisu = [4,6,8,9,10,12]
s_num = 1.0
g_num = 1.0

for s in sosu:
	s_num = s_num * s
s_num /= 6

for g in gouseisu:
	g_num = g_num * g
g_num /= 6

P = int(P)
C = int(C)

if P == 0:
	output = g_num**C
elif C == 0:
	output = s_num**P
else:
	output = (s_num**P) * (g_num**C)

print output
0