結果

問題 No.207 世界のなんとか
ユーザー ant2357ant2357
提出日時 2016-03-19 00:15:38
言語 PHP
(8.2.11)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 226 bytes
コンパイル時間 755 ms
コンパイル使用メモリ 18,464 KB
実行使用メモリ 19,012 KB
最終ジャッジ日時 2023-07-30 15:35:35
合計ジャッジ時間 2,056 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

<?php
	$input = explode(" ", trim(fgets(STDIN)));

	$a = $input[0];
	$b = $input[1];

	for ($count = $a; $count <= $b; $count++) {
		if ( (($count % 3) == 0) || (strpos($count,'3') !== FALSE) ) {
			echo $count.PHP_EOL;
		}
	}
0