結果

問題 No.207 世界のなんとか
ユーザー dong_feng
提出日時 2018-04-16 00:47:05
言語 PHP
(843.2)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 1,070 ms
コンパイル使用メモリ 30,732 KB
実行使用メモリ 31,304 KB
最終ジャッジ日時 2024-06-27 02:43:03
合計ジャッジ時間 1,601 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
function contain3($num){
    while($num>=1){
        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