結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー test
提出日時 2022-11-24 14:30:00
言語 JavaScript
(node v23.5.0)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 41,068 KB
最終ジャッジ日時 2024-10-01 05:24:48
合計ジャッジ時間 4,696 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 11 WA * 2
権限があれば一括ダウンロードができます

ソースコード

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