結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー takeya_okinotakeya_okino
提出日時 2017-07-14 18:47:12
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 225 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 31,092 KB
実行使用メモリ 31,464 KB
最終ジャッジ日時 2024-04-16 19:50:46
合計ジャッジ時間 2,451 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 41 ms
30,904 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 42 ms
30,628 KB
testcase_07 AC 41 ms
30,716 KB
testcase_08 WA -
testcase_09 AC 41 ms
30,684 KB
testcase_10 AC 42 ms
31,092 KB
testcase_11 WA -
testcase_12 AC 41 ms
30,840 KB
testcase_13 AC 42 ms
30,700 KB
testcase_14 AC 41 ms
30,712 KB
testcase_15 AC 41 ms
30,928 KB
testcase_16 AC 41 ms
31,028 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 41 ms
30,484 KB
testcase_20 AC 41 ms
30,904 KB
testcase_21 AC 41 ms
30,580 KB
testcase_22 AC 41 ms
30,816 KB
testcase_23 AC 43 ms
30,628 KB
testcase_24 AC 41 ms
31,004 KB
testcase_25 AC 41 ms
30,968 KB
testcase_26 AC 41 ms
30,928 KB
testcase_27 AC 41 ms
30,624 KB
testcase_28 AC 41 ms
30,888 KB
testcase_29 AC 41 ms
30,884 KB
testcase_30 AC 41 ms
30,868 KB
testcase_31 AC 41 ms
30,828 KB
testcase_32 AC 41 ms
30,916 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$K = trim(fgets(STDIN));
$dice1 = array(2,3,5,7,11,13);
$dice2 = array(4,6,8,9,10,12);
$count = 0;
for($i = 0; $i < 6; $i++) {
  for($j = 0; $j < 6; $j++) {
    if(($i * $j) == $K) $count++;
  }
}
print($count / 36);
?>
0