結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー 綾地寧々綾地寧々
提出日時 2015-05-22 22:46:52
言語 PHP
(8.3.4)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 707 ms
コンパイル使用メモリ 18,696 KB
実行使用メモリ 19,292 KB
最終ジャッジ日時 2023-09-20 09:41:46
合計ジャッジ時間 1,498 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
19,100 KB
testcase_01 AC 15 ms
19,288 KB
testcase_02 AC 15 ms
18,944 KB
testcase_03 AC 16 ms
19,252 KB
testcase_04 AC 15 ms
19,196 KB
testcase_05 AC 16 ms
19,152 KB
testcase_06 AC 16 ms
19,272 KB
testcase_07 AC 15 ms
19,280 KB
testcase_08 AC 15 ms
19,256 KB
testcase_09 AC 16 ms
19,292 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