結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー 綾地寧々綾地寧々
提出日時 2015-05-22 22:46:52
言語 PHP
(7.2.24)
結果
AC  
実行時間 14 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 683 ms
使用メモリ 17,772 KB
最終ジャッジ日時 2023-02-08 18:45:11
合計ジャッジ時間 1,756 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 13 ms
17,312 KB
testcase_01 AC 13 ms
17,680 KB
testcase_02 AC 13 ms
17,540 KB
testcase_03 AC 14 ms
17,692 KB
testcase_04 AC 14 ms
17,740 KB
testcase_05 AC 14 ms
17,652 KB
testcase_06 AC 14 ms
17,772 KB
testcase_07 AC 14 ms
17,636 KB
testcase_08 AC 14 ms
17,576 KB
testcase_09 AC 14 ms
17,480 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$prime = array(2,3,5,7,11,13);
$composite = array(4,6,8,9,10,12);
list($p, $c) = explode(" ",trim(fgets(STDIN)));
$p_ex = pow((array_sum($prime) / 6), $p);
$c_ex = pow((array_sum($composite) / 6), $c);
echo ($p_ex * $c_ex) . PHP_EOL;
0