結果

問題 No.207 世界のなんとか
ユーザー Ruizi_LuigiRuizi_Luigi
提出日時 2015-08-04 23:52:48
言語 PHP
(8.3.4)
結果
AC  
実行時間 49 ms / 5,000 ms
コード長 321 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 30,512 KB
実行使用メモリ 31,352 KB
最終ジャッジ日時 2024-04-17 16:20:30
合計ジャッジ時間 1,820 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
30,764 KB
testcase_01 AC 44 ms
31,220 KB
testcase_02 AC 45 ms
31,000 KB
testcase_03 AC 45 ms
31,012 KB
testcase_04 AC 44 ms
31,132 KB
testcase_05 AC 44 ms
30,908 KB
testcase_06 AC 45 ms
30,920 KB
testcase_07 AC 49 ms
31,164 KB
testcase_08 AC 45 ms
30,876 KB
testcase_09 AC 45 ms
31,036 KB
testcase_10 AC 45 ms
31,152 KB
testcase_11 AC 45 ms
31,208 KB
testcase_12 AC 45 ms
30,876 KB
testcase_13 AC 47 ms
30,916 KB
testcase_14 AC 45 ms
30,880 KB
testcase_15 AC 44 ms
31,052 KB
testcase_16 AC 45 ms
31,352 KB
testcase_17 AC 44 ms
31,064 KB
testcase_18 AC 44 ms
30,764 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

list($a, $b) = explode(' ', trim(fgets(STDIN)));


for ($i = $a; $i <= $b; $i++) {
  if (strpos((string)$i, '3') !== false )
    echo $i . "\n";
  else if ($i%3 === 0)
    echo $i . "\n";

/*
  $result1 = strpos((string)$i, '3');
  $result2 = $i%3;
  if ($result1 !== false || $result2 === 0) echo $i . "\n";
*/
}
0