結果

問題 No.207 世界のなんとか
ユーザー Ruizi_LuigiRuizi_Luigi
提出日時 2015-08-04 23:52:15
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 959 ms
コンパイル使用メモリ 18,688 KB
実行使用メモリ 18,984 KB
最終ジャッジ日時 2023-09-25 01:11:52
合計ジャッジ時間 2,119 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 16 ms
18,852 KB
testcase_04 AC 16 ms
18,864 KB
testcase_05 WA -
testcase_06 AC 16 ms
18,584 KB
testcase_07 AC 15 ms
18,728 KB
testcase_08 AC 16 ms
18,836 KB
testcase_09 AC 16 ms
18,844 KB
testcase_10 WA -
testcase_11 AC 15 ms
18,728 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 15 ms
18,776 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 15 ms
18,752 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