結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー kitamoto0407kitamoto0407
提出日時 2022-07-28 18:08:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 526 bytes
コンパイル時間 2,984 ms
コンパイル使用メモリ 71,056 KB
実行使用メモリ 50,052 KB
最終ジャッジ日時 2023-09-25 10:49:22
合計ジャッジ時間 9,850 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,432 KB
testcase_01 AC 46 ms
49,564 KB
testcase_02 AC 46 ms
49,672 KB
testcase_03 AC 46 ms
49,860 KB
testcase_04 AC 45 ms
50,052 KB
testcase_05 AC 45 ms
49,572 KB
testcase_06 AC 44 ms
49,436 KB
testcase_07 AC 44 ms
49,268 KB
testcase_08 AC 45 ms
49,280 KB
testcase_09 AC 45 ms
49,268 KB
testcase_10 AC 44 ms
49,616 KB
testcase_11 AC 45 ms
49,580 KB
testcase_12 AC 44 ms
50,032 KB
testcase_13 AC 44 ms
49,352 KB
testcase_14 AC 44 ms
49,280 KB
testcase_15 AC 45 ms
49,536 KB
testcase_16 AC 43 ms
49,460 KB
testcase_17 AC 43 ms
49,488 KB
testcase_18 AC 44 ms
49,364 KB
testcase_19 AC 45 ms
49,368 KB
testcase_20 AC 44 ms
49,484 KB
testcase_21 AC 44 ms
49,588 KB
testcase_22 AC 45 ms
49,264 KB
testcase_23 AC 44 ms
49,848 KB
testcase_24 AC 43 ms
47,412 KB
testcase_25 AC 44 ms
49,520 KB
testcase_26 AC 44 ms
49,380 KB
testcase_27 AC 46 ms
49,372 KB
testcase_28 AC 45 ms
49,364 KB
testcase_29 AC 44 ms
49,472 KB
testcase_30 AC 44 ms
49,524 KB
testcase_31 AC 44 ms
49,384 KB
testcase_32 AC 44 ms
49,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.math.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String[] input = br.readLine().split(" ");
        
        BigInteger a = new BigInteger(input[0]);
        BigInteger n = new BigInteger(input[1]);
        
        BigInteger M = new BigInteger("10000000000");
        
        System.out.println(M);
        System.out.println(a.modPow(n, M));
    }
}
0