結果

問題 No.251 大きな桁の復習問題(1)
ユーザー rf141rf141
提出日時 2015-07-25 00:33:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 823 ms / 5,000 ms
コード長 336 bytes
コンパイル時間 3,236 ms
コンパイル使用メモリ 71,912 KB
実行使用メモリ 59,484 KB
最終ジャッジ日時 2023-08-22 16:56:27
合計ジャッジ時間 14,953 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,108 KB
testcase_01 AC 118 ms
55,480 KB
testcase_02 AC 120 ms
55,716 KB
testcase_03 AC 120 ms
55,624 KB
testcase_04 AC 118 ms
55,724 KB
testcase_05 AC 118 ms
55,712 KB
testcase_06 AC 117 ms
53,404 KB
testcase_07 AC 118 ms
55,732 KB
testcase_08 AC 116 ms
55,284 KB
testcase_09 AC 798 ms
59,404 KB
testcase_10 AC 808 ms
59,200 KB
testcase_11 AC 823 ms
59,072 KB
testcase_12 AC 804 ms
59,484 KB
testcase_13 AC 810 ms
58,880 KB
testcase_14 AC 803 ms
58,864 KB
testcase_15 AC 785 ms
58,872 KB
testcase_16 AC 803 ms
59,160 KB
testcase_17 AC 809 ms
59,260 KB
testcase_18 AC 781 ms
59,124 KB
testcase_19 AC 820 ms
58,776 KB
testcase_20 AC 120 ms
55,996 KB
testcase_21 AC 118 ms
55,680 KB
testcase_22 AC 119 ms
56,116 KB
testcase_23 AC 119 ms
55,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.*;
import java.util.*;;
public class big {
    public static void main(String... args) {
        Scanner scan = new Scanner(System.in);
        BigInteger n = new BigInteger(scan.next());
        BigInteger m = new BigInteger(scan.next());
        System.out.println(n.modPow(m, BigInteger.valueOf(129402307)));
    }
}
0