結果

問題 No.207 世界のなんとか
ユーザー ant2357ant2357
提出日時 2016-03-18 23:44:47
言語 PHP
(8.3.4)
結果
OLE  
実行時間 -
コード長 441 bytes
コンパイル時間 1,312 ms
コンパイル使用メモリ 32,540 KB
実行使用メモリ 39,344 KB
最終ジャッジ日時 2024-04-08 17:01:27
合計ジャッジ時間 14,111 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 OLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
	list($a, $b) = explode(" ", trim(fgets(STDIN)));

	for ($count = 3; $count < $b; $count++) {

		if ($count % 3 === 0 ) {
			echo "$count\n";	//出力
			$count++;
		}

		$c = str_split($count);
		$i = 0;

		while(isset($c[$i])) {
			//配列が存在している

			if ($c[$i] == 3) {
				//3の付く数字である
				echo "$count\n";	//出力
			}
			$i++;
		}
		$count++;
	}

	if ($b % 3 === 0 ) {
		echo "$count\n";	//出力
	}
0