結果

問題 No.207 世界のなんとか
ユーザー nanae
提出日時 2017-03-01 20:11:35
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 302 bytes
コンパイル時間 1,011 ms
コンパイル使用メモリ 102,148 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 07:07:44
合計ジャッジ時間 1,619 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio;
import std.string, std.conv, std.array, std.algorithm;

void main(){
    auto input = readln.split.map!(to!int).array;
    auto A = input[0], B = input[1];

    foreach(i ; A .. B + 1){
        if(i % 3 == 0 || i.to!string.indexOf('3') != -1){
            i.writeln;
        }
    }
}
0