結果

問題 No.251 大きな桁の復習問題(1)
ユーザー ぴろずぴろず
提出日時 2015-07-24 22:34:20
言語 Java19
(openjdk 21)
結果
AC  
実行時間 815 ms / 5,000 ms
コード長 334 bytes
コンパイル時間 2,125 ms
コンパイル使用メモリ 71,408 KB
実行使用メモリ 59,424 KB
最終ジャッジ日時 2023-08-22 16:47:25
合計ジャッジ時間 13,708 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,900 KB
testcase_01 AC 121 ms
55,780 KB
testcase_02 AC 121 ms
55,880 KB
testcase_03 AC 123 ms
55,688 KB
testcase_04 AC 121 ms
55,564 KB
testcase_05 AC 120 ms
55,932 KB
testcase_06 AC 120 ms
55,412 KB
testcase_07 AC 118 ms
55,744 KB
testcase_08 AC 119 ms
55,936 KB
testcase_09 AC 796 ms
59,216 KB
testcase_10 AC 815 ms
59,252 KB
testcase_11 AC 815 ms
59,424 KB
testcase_12 AC 798 ms
59,252 KB
testcase_13 AC 797 ms
58,868 KB
testcase_14 AC 804 ms
59,124 KB
testcase_15 AC 799 ms
59,176 KB
testcase_16 AC 798 ms
59,188 KB
testcase_17 AC 797 ms
59,208 KB
testcase_18 AC 772 ms
58,936 KB
testcase_19 AC 810 ms
59,212 KB
testcase_20 AC 122 ms
55,408 KB
testcase_21 AC 122 ms
55,808 KB
testcase_22 AC 120 ms
55,632 KB
testcase_23 AC 123 ms
55,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no251;

import java.math.BigInteger;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		BigInteger n = new BigInteger(sc.next());
		BigInteger m = new BigInteger(sc.next());
		System.out.println(n.modPow(m, BigInteger.valueOf(129402307)));
	}

}
0