結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-11-24 14:38:34 |
| 言語 | JavaScript(Node) (node v26.11.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 45 ms / 2,000 ms |
| + 959µs | |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 5 ms |
| コンパイル使用メモリ | 9,912 KB |
| 実行使用メモリ | 51,028 KB |
| 最終ジャッジ日時 | 2026-10-20 07:38:10 |
| 合計ジャッジ時間 | 4,194 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
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"));