結果

問題 No.773 コンテスト
ユーザー dyechidyechi
提出日時 2019-03-28 11:46:37
言語 PHP
(8.3.4)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 3,294 ms
コンパイル使用メモリ 30,552 KB
実行使用メモリ 31,164 KB
最終ジャッジ日時 2024-04-20 19:00:59
合計ジャッジ時間 5,179 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
31,064 KB
testcase_01 AC 43 ms
30,832 KB
testcase_02 AC 43 ms
30,824 KB
testcase_03 AC 43 ms
30,796 KB
testcase_04 AC 44 ms
30,876 KB
testcase_05 AC 44 ms
30,588 KB
testcase_06 AC 42 ms
30,788 KB
testcase_07 AC 42 ms
30,880 KB
testcase_08 AC 42 ms
30,664 KB
testcase_09 AC 43 ms
30,928 KB
testcase_10 AC 42 ms
31,104 KB
testcase_11 AC 42 ms
31,124 KB
testcase_12 AC 43 ms
30,632 KB
testcase_13 AC 42 ms
31,044 KB
testcase_14 AC 42 ms
30,960 KB
testcase_15 AC 42 ms
31,164 KB
testcase_16 AC 42 ms
30,984 KB
testcase_17 AC 43 ms
30,940 KB
testcase_18 AC 44 ms
30,920 KB
testcase_19 AC 44 ms
30,968 KB
testcase_20 AC 44 ms
30,748 KB
testcase_21 AC 43 ms
30,608 KB
testcase_22 AC 42 ms
30,864 KB
testcase_23 AC 42 ms
31,048 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$s = trim(fgets(STDIN));
$s = explode(" ", $s);

$event_dates = array(23, 24, 25);
$not_entry_day = 0;
for ($i=$s[0]; $i<=$s[1]; $i++) {
    if (in_array($i, $event_dates) == true) {
        $not_entry_day++;
    }
}
echo 3 - $not_entry_day.PHP_EOL;
?>
0