結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー testtest
提出日時 2022-11-24 14:38:34
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 6,548 KB
実行使用メモリ 37,632 KB
最終ジャッジ日時 2024-04-08 11:42:47
合計ジャッジ時間 2,286 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
37,632 KB
testcase_01 AC 72 ms
37,632 KB
testcase_02 AC 71 ms
37,632 KB
testcase_03 AC 73 ms
37,632 KB
testcase_04 AC 70 ms
37,632 KB
testcase_05 AC 75 ms
37,632 KB
testcase_06 AC 71 ms
37,632 KB
testcase_07 AC 69 ms
37,632 KB
testcase_08 AC 68 ms
37,632 KB
testcase_09 AC 73 ms
37,632 KB
testcase_10 AC 76 ms
37,632 KB
testcase_11 AC 70 ms
37,632 KB
testcase_12 AC 71 ms
37,632 KB
testcase_13 AC 71 ms
37,632 KB
testcase_14 AC 74 ms
37,632 KB
testcase_15 AC 72 ms
37,632 KB
testcase_16 AC 71 ms
37,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    const src = input.split("\n")
    const a = src[0];
    const b = src[1];
    let ans = "NG";
    const regexp = new RegExp(/^(0|[1-9][0-9]*)$/);
    if (regexp.test(a) &&
        regexp.test(b) &&
        a <= 12345 &&
        b <= 12345) ans = "OK";
    console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0