結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー 37zigen37zigen
提出日時 2016-05-05 16:16:36
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 3,032 ms
コンパイル使用メモリ 31,956 KB
実行使用メモリ 32,912 KB
最終ジャッジ日時 2024-04-15 13:15:55
合計ジャッジ時間 4,059 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 45 ms
32,656 KB
testcase_03 AC 46 ms
32,652 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$prime=array(2,3,5,7,11);
$composite=array(4,6,8,9,10,12);
list($p,$c)=explode(" ",trim(fgets(STDIN)));
// $p=10;
// $c=10;
$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