結果

問題 No.207 世界のなんとか
ユーザー mm
提出日時 2020-08-12 15:01:57
言語 PHP
(8.3.4)
結果
AC  
実行時間 46 ms / 5,000 ms
コード長 297 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 31,000 KB
実行使用メモリ 31,540 KB
最終ジャッジ日時 2024-04-18 00:34:17
合計ジャッジ時間 1,992 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
31,164 KB
testcase_01 AC 42 ms
31,412 KB
testcase_02 AC 42 ms
31,372 KB
testcase_03 AC 42 ms
30,932 KB
testcase_04 AC 42 ms
31,468 KB
testcase_05 AC 42 ms
31,368 KB
testcase_06 AC 42 ms
31,300 KB
testcase_07 AC 42 ms
31,308 KB
testcase_08 AC 46 ms
31,244 KB
testcase_09 AC 43 ms
31,460 KB
testcase_10 AC 43 ms
31,540 KB
testcase_11 AC 43 ms
31,080 KB
testcase_12 AC 43 ms
31,432 KB
testcase_13 AC 43 ms
31,292 KB
testcase_14 AC 44 ms
31,304 KB
testcase_15 AC 43 ms
31,504 KB
testcase_16 AC 44 ms
31,408 KB
testcase_17 AC 43 ms
31,060 KB
testcase_18 AC 43 ms
31,404 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

    //一行分を読み込む, 空白で分割してそれぞれ$aと$bの変数に入れる
    list($a, $b) = explode(" ", trim(fgets(STDIN)));
    
    for ($i = $a; $i <= $b; $i++) {
        if ($i%3 === 0 || preg_match('/3/', $i))
        {
            printf("$i\n");
        }
    }
0