結果

問題 No.207 世界のなんとか
ユーザー AAAR15AAAR15
提出日時 2015-06-22 17:19:19
言語 PHP
(8.3.4)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 244 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 18,724 KB
実行使用メモリ 19,120 KB
最終ジャッジ日時 2023-07-30 15:11:10
合計ジャッジ時間 1,334 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
19,120 KB
testcase_01 AC 16 ms
18,840 KB
testcase_02 AC 17 ms
19,056 KB
testcase_03 AC 16 ms
18,820 KB
testcase_04 AC 16 ms
18,780 KB
testcase_05 AC 15 ms
19,012 KB
testcase_06 AC 16 ms
18,752 KB
testcase_07 AC 16 ms
19,040 KB
testcase_08 AC 16 ms
19,008 KB
testcase_09 AC 16 ms
19,052 KB
testcase_10 AC 16 ms
19,008 KB
testcase_11 AC 16 ms
19,040 KB
testcase_12 AC 16 ms
19,008 KB
testcase_13 AC 16 ms
18,896 KB
testcase_14 AC 16 ms
19,120 KB
testcase_15 AC 16 ms
18,988 KB
testcase_16 AC 16 ms
19,056 KB
testcase_17 AC 15 ms
18,848 KB
testcase_18 AC 15 ms
18,952 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

$input = trim(fgets(STDIN));
$str = explode(" ", $input);
$from = (int) $str[0];
$to = (int) $str[1];
for ($i = $from; $i <= $to; $i++) {
if (($i % 3 === 0) || (preg_match('/^[0-9]*3[0-9]*$/', $i))) { 
    echo $i;
    echo "\n";
    }
}
0