結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー testtest
提出日時 2022-11-24 14:38:34
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 39,168 KB
最終ジャッジ日時 2024-10-01 05:32:59
合計ジャッジ時間 1,643 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

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