結果

問題 No.207 世界のなんとか
ユーザー swyroakswyroak
提出日時 2021-08-02 00:20:12
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 488 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 44,748 KB
最終ジャッジ日時 2023-10-14 19:06:09
合計ジャッジ時間 3,109 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
42,220 KB
testcase_01 AC 73 ms
42,216 KB
testcase_02 AC 76 ms
42,420 KB
testcase_03 AC 74 ms
42,192 KB
testcase_04 AC 76 ms
42,020 KB
testcase_05 AC 76 ms
42,480 KB
testcase_06 AC 71 ms
42,000 KB
testcase_07 AC 71 ms
42,144 KB
testcase_08 AC 73 ms
42,032 KB
testcase_09 AC 74 ms
42,080 KB
testcase_10 AC 75 ms
42,444 KB
testcase_11 AC 74 ms
42,460 KB
testcase_12 AC 76 ms
42,732 KB
testcase_13 AC 76 ms
42,256 KB
testcase_14 AC 78 ms
44,748 KB
testcase_15 AC 75 ms
42,352 KB
testcase_16 AC 71 ms
41,984 KB
testcase_17 AC 71 ms
41,976 KB
testcase_18 AC 66 ms
41,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"use strict";
function Main(input) {
    let Start;
    let Goal;
    [Start, Goal] = input.split(" ").map(i => Number(i));
    for (let i = Start; i < Goal + 1; i++) {
        if (i % 3 === 0) {
            console.log(i);
        }
        else if (String(i).match("3") != null) {
            console.log(i);
        }
    }
}
//テストの入力を受け取る
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
//Main("1 500");
//# sourceMappingURL=index.js.map
0