結果

問題 No.207 世界のなんとか
ユーザー AAAR15AAAR15
提出日時 2015-06-22 17:19:19
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 244 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 30,812 KB
実行使用メモリ 31,528 KB
最終ジャッジ日時 2024-04-17 16:17:31
合計ジャッジ時間 1,511 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
31,136 KB
testcase_01 AC 42 ms
31,280 KB
testcase_02 AC 36 ms
31,404 KB
testcase_03 AC 38 ms
31,356 KB
testcase_04 AC 37 ms
31,208 KB
testcase_05 AC 38 ms
31,216 KB
testcase_06 AC 39 ms
31,280 KB
testcase_07 AC 37 ms
31,316 KB
testcase_08 AC 37 ms
31,148 KB
testcase_09 AC 36 ms
31,528 KB
testcase_10 AC 37 ms
31,408 KB
testcase_11 AC 37 ms
31,160 KB
testcase_12 AC 38 ms
31,184 KB
testcase_13 AC 37 ms
31,064 KB
testcase_14 AC 36 ms
31,308 KB
testcase_15 AC 36 ms
31,292 KB
testcase_16 AC 37 ms
31,116 KB
testcase_17 AC 36 ms
30,972 KB
testcase_18 AC 36 ms
31,352 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