結果

問題 No.207 世界のなんとか
ユーザー dong_fengdong_feng
提出日時 2018-04-16 00:45:58
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 316 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 18,752 KB
実行使用メモリ 18,988 KB
最終ジャッジ日時 2023-09-09 09:29:46
合計ジャッジ時間 1,649 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,768 KB
testcase_01 AC 14 ms
18,780 KB
testcase_02 AC 15 ms
18,844 KB
testcase_03 AC 15 ms
18,852 KB
testcase_04 AC 15 ms
18,824 KB
testcase_05 AC 15 ms
18,748 KB
testcase_06 AC 14 ms
18,788 KB
testcase_07 AC 14 ms
18,844 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 15 ms
18,848 KB
testcase_12 AC 15 ms
18,776 KB
testcase_13 WA -
testcase_14 AC 15 ms
18,836 KB
testcase_15 AC 15 ms
18,848 KB
testcase_16 AC 15 ms
18,988 KB
testcase_17 AC 15 ms
18,764 KB
testcase_18 AC 15 ms
18,792 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
function contain3($num){
    while($num>=10){
        if($num%10==3){
            return true;
        }
        $num = floor($num/10);
    }
    return false;
}

sscanf(fgets(STDIN), "%d %d", $min, $max);
for($i=$min; $i<=$max; $i++){
    if(contain3($i)||$i%3==0){
        echo $i;
        echo "\n";
    }
}
0