結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー 37zigen37zigen
提出日時 2016-05-05 16:21:26
言語 PHP
(8.3.4)
結果
AC  
実行時間 48 ms / 5,000 ms
コード長 231 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 32,144 KB
実行使用メモリ 32,660 KB
最終ジャッジ日時 2024-04-15 13:15:57
合計ジャッジ時間 1,237 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
32,528 KB
testcase_01 AC 45 ms
32,276 KB
testcase_02 AC 48 ms
32,468 KB
testcase_03 AC 43 ms
32,528 KB
testcase_04 AC 46 ms
32,532 KB
testcase_05 AC 44 ms
32,472 KB
testcase_06 AC 46 ms
32,660 KB
testcase_07 AC 46 ms
32,528 KB
testcase_08 AC 45 ms
32,660 KB
testcase_09 AC 45 ms
32,656 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=3;
// $c=4;
$p_e=pow(array_sum($prime)/6.0,$p);
$c_e=pow(array_sum($composite)/6.0,$c);
echo($p_e*$c_e).PHP_EOL;
0