結果

問題 No.220 世界のなんとか2
ユーザー AAAR15AAAR15
提出日時 2015-06-22 18:23:18
言語 PHP
(8.3.4)
結果
TLE  
実行時間 -
コード長 219 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 18,708 KB
実行使用メモリ 23,576 KB
最終ジャッジ日時 2023-09-21 23:41:03
合計ジャッジ時間 3,486 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
23,380 KB
testcase_01 AC 16 ms
19,080 KB
testcase_02 AC 16 ms
18,952 KB
testcase_03 AC 17 ms
19,100 KB
testcase_04 AC 36 ms
18,984 KB
testcase_05 AC 212 ms
18,992 KB
testcase_06 TLE -
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

$input = trim(fgets(STDIN));
$from = 1;
$to = pow(10, $input);
$count = 0;
for ($i = $from; $i <= $to; $i++) {
if (($i % 3 === 0) || (preg_match('/^[0-9]*3[0-9]*$/', $i))) { 
    $count += 1;
    }
}
echo $count;
0