結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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_e=pow(array_sum($prime)/6,$p);
$c_e=pow(array_sum($composite)/6,$c);
echo($p_e*c_e).PHP_EOL;
0