結果

問題 No.531 エヌスクミ島の平和協定
ユーザー testtest
提出日時 2022-11-25 06:58:32
言語 JavaScript
(node v20.8.0)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 309 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 5,460 KB
実行使用メモリ 44,320 KB
最終ジャッジ日時 2023-07-24 21:50:19
合計ジャッジ時間 4,502 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
42,396 KB
testcase_01 AC 71 ms
42,116 KB
testcase_02 AC 68 ms
42,260 KB
testcase_03 AC 66 ms
42,380 KB
testcase_04 AC 66 ms
42,396 KB
testcase_05 AC 66 ms
42,172 KB
testcase_06 AC 73 ms
42,256 KB
testcase_07 AC 70 ms
42,256 KB
testcase_08 AC 72 ms
44,320 KB
testcase_09 AC 69 ms
42,228 KB
testcase_10 AC 73 ms
42,120 KB
testcase_11 AC 69 ms
42,116 KB
testcase_12 AC 67 ms
42,344 KB
testcase_13 AC 67 ms
42,260 KB
testcase_14 AC 64 ms
42,304 KB
testcase_15 AC 67 ms
42,292 KB
testcase_16 AC 71 ms
42,248 KB
testcase_17 AC 69 ms
42,296 KB
testcase_18 AC 68 ms
42,372 KB
testcase_19 AC 69 ms
42,336 KB
testcase_20 AC 64 ms
42,124 KB
testcase_21 AC 68 ms
42,276 KB
testcase_22 AC 68 ms
42,328 KB
testcase_23 AC 69 ms
42,400 KB
testcase_24 AC 75 ms
42,328 KB
testcase_25 AC 67 ms
42,228 KB
testcase_26 AC 66 ms
42,112 KB
testcase_27 AC 66 ms
42,256 KB
testcase_28 AC 68 ms
42,324 KB
testcase_29 AC 68 ms
42,296 KB
testcase_30 AC 68 ms
42,352 KB
testcase_31 AC 67 ms
42,292 KB
testcase_32 AC 67 ms
42,288 KB
testcase_33 AC 66 ms
42,256 KB
testcase_34 AC 66 ms
42,152 KB
testcase_35 AC 69 ms
42,252 KB
testcase_36 AC 67 ms
42,120 KB
testcase_37 AC 67 ms
42,276 KB
testcase_38 AC 68 ms
42,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    const src = input.replace("\n", "").split(" ");
    const n = parseInt(src[0]);
    const m = parseInt(src[1]);
    let ans = -1;
    if (n <= m) ans = 1;
    else if (n % 2 == 0 && n / 2 <= m) ans = 2;
    console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0