結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー testtest
提出日時 2022-11-24 14:30:00
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 6,676 KB
実行使用メモリ 37,632 KB
最終ジャッジ日時 2024-04-08 11:29:17
合計ジャッジ時間 2,454 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
37,632 KB
testcase_01 AC 69 ms
37,632 KB
testcase_02 AC 70 ms
37,632 KB
testcase_03 AC 70 ms
37,632 KB
testcase_04 AC 69 ms
37,632 KB
testcase_05 AC 74 ms
37,632 KB
testcase_06 WA -
testcase_07 AC 70 ms
37,632 KB
testcase_08 WA -
testcase_09 AC 69 ms
37,632 KB
testcase_10 AC 71 ms
37,632 KB
testcase_11 AC 69 ms
37,632 KB
testcase_12 AC 70 ms
37,632 KB
testcase_13 AC 73 ms
37,632 KB
testcase_14 AC 70 ms
37,632 KB
testcase_15 AC 70 ms
37,632 KB
testcase_16 AC 74 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)) ans = "OK";
    console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0