結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー sysnote8mainsysnote8main
提出日時 2023-05-07 17:04:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 577 bytes
コンパイル時間 3,485 ms
コンパイル使用メモリ 73,240 KB
実行使用メモリ 37,396 KB
最終ジャッジ日時 2024-05-03 15:11:43
合計ジャッジ時間 6,879 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
36,956 KB
testcase_01 AC 48 ms
36,784 KB
testcase_02 AC 48 ms
37,180 KB
testcase_03 AC 50 ms
37,060 KB
testcase_04 AC 49 ms
37,220 KB
testcase_05 AC 48 ms
37,132 KB
testcase_06 AC 50 ms
37,232 KB
testcase_07 AC 49 ms
37,284 KB
testcase_08 AC 47 ms
36,824 KB
testcase_09 AC 51 ms
37,192 KB
testcase_10 AC 50 ms
37,356 KB
testcase_11 AC 50 ms
36,956 KB
testcase_12 AC 50 ms
37,132 KB
testcase_13 AC 50 ms
36,824 KB
testcase_14 AC 53 ms
37,228 KB
testcase_15 AC 51 ms
37,060 KB
testcase_16 AC 50 ms
37,240 KB
testcase_17 AC 50 ms
37,096 KB
testcase_18 AC 48 ms
37,240 KB
testcase_19 AC 51 ms
37,268 KB
testcase_20 AC 52 ms
37,268 KB
testcase_21 AC 49 ms
37,372 KB
testcase_22 AC 53 ms
36,936 KB
testcase_23 AC 52 ms
37,148 KB
testcase_24 AC 52 ms
36,956 KB
testcase_25 AC 53 ms
37,396 KB
testcase_26 AC 56 ms
37,172 KB
testcase_27 AC 52 ms
37,144 KB
testcase_28 AC 52 ms
37,224 KB
testcase_29 AC 53 ms
37,272 KB
testcase_30 AC 50 ms
37,240 KB
testcase_31 AC 54 ms
37,240 KB
testcase_32 AC 52 ms
37,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;

public class Arbitrary_Mod_2007{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] il = br.readLine().split(" ");
        BigInteger p = new BigInteger(il[0]);
        BigInteger q = new BigInteger(il[1]);
        BigInteger g = new BigInteger("10000000000");
        System.out.println(g);
        System.out.println(p.modPow(q,g));
    }
}
0