結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー kisschankisschan
提出日時 2022-08-12 00:06:03
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 437 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 37,676 KB
最終ジャッジ日時 2023-10-22 05:09:52
合計ジャッジ時間 7,602 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
37,548 KB
testcase_01 AC 66 ms
37,548 KB
testcase_02 WA -
testcase_03 AC 67 ms
37,548 KB
testcase_04 AC 67 ms
37,548 KB
testcase_05 AC 67 ms
37,548 KB
testcase_06 AC 65 ms
37,548 KB
testcase_07 AC 68 ms
37,548 KB
testcase_08 AC 68 ms
37,548 KB
testcase_09 AC 68 ms
37,548 KB
testcase_10 AC 67 ms
37,548 KB
testcase_11 AC 68 ms
37,548 KB
testcase_12 AC 68 ms
37,548 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    // inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。
    var data = input.split('\n').slice(0,-1);
    data = data[0].split(' ');
    let a = data[0];
    let n = data[1];
    let sum = 1;
    let M = 1000000000;
    sum = a ** n;
    console.log(M);
    console.log(sum%M);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0