結果

問題 No.976 2 の 128 乗と M
ユーザー ks2mks2m
提出日時 2020-01-31 21:31:05
言語 Java19
(openjdk 21)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 390 bytes
コンパイル時間 4,074 ms
コンパイル使用メモリ 74,672 KB
実行使用メモリ 53,492 KB
最終ジャッジ日時 2023-10-17 08:46:37
合計ジャッジ時間 6,890 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
53,488 KB
testcase_01 AC 53 ms
53,480 KB
testcase_02 AC 53 ms
53,480 KB
testcase_03 AC 52 ms
53,476 KB
testcase_04 AC 52 ms
53,484 KB
testcase_05 AC 54 ms
53,484 KB
testcase_06 AC 53 ms
53,484 KB
testcase_07 AC 53 ms
52,340 KB
testcase_08 AC 53 ms
53,484 KB
testcase_09 AC 53 ms
53,480 KB
testcase_10 AC 52 ms
52,312 KB
testcase_11 AC 55 ms
53,480 KB
testcase_12 AC 53 ms
53,484 KB
testcase_13 AC 54 ms
53,480 KB
testcase_14 AC 53 ms
53,480 KB
testcase_15 AC 53 ms
53,484 KB
testcase_16 AC 53 ms
53,484 KB
testcase_17 AC 53 ms
53,488 KB
testcase_18 AC 55 ms
53,476 KB
testcase_19 AC 55 ms
52,792 KB
testcase_20 AC 52 ms
52,404 KB
testcase_21 AC 54 ms
53,484 KB
testcase_22 AC 53 ms
53,488 KB
testcase_23 AC 54 ms
53,476 KB
testcase_24 AC 53 ms
52,352 KB
testcase_25 AC 53 ms
53,484 KB
testcase_26 AC 53 ms
53,424 KB
testcase_27 AC 53 ms
53,488 KB
testcase_28 AC 53 ms
52,328 KB
testcase_29 AC 53 ms
53,488 KB
testcase_30 AC 53 ms
52,364 KB
testcase_31 AC 53 ms
53,476 KB
testcase_32 AC 52 ms
53,476 KB
testcase_33 AC 53 ms
53,484 KB
testcase_34 AC 53 ms
53,480 KB
testcase_35 AC 57 ms
52,364 KB
testcase_36 AC 53 ms
52,336 KB
testcase_37 AC 53 ms
53,484 KB
testcase_38 AC 53 ms
53,488 KB
testcase_39 AC 54 ms
53,484 KB
testcase_40 AC 52 ms
52,320 KB
testcase_41 AC 52 ms
52,368 KB
testcase_42 AC 52 ms
53,492 KB
testcase_43 AC 53 ms
53,476 KB
testcase_44 AC 52 ms
53,492 KB
testcase_45 AC 52 ms
53,428 KB
testcase_46 AC 53 ms
53,480 KB
testcase_47 AC 52 ms
53,480 KB
testcase_48 AC 53 ms
53,488 KB
testcase_49 AC 53 ms
53,484 KB
testcase_50 AC 52 ms
53,476 KB
testcase_51 AC 53 ms
53,484 KB
testcase_52 AC 53 ms
53,476 KB
testcase_53 AC 54 ms
53,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		long m = Long.parseLong(br.readLine());
		br.close();

		long ans = 1;
		for (int i = 0; i < 128; i++) {
			ans *= 2;
			ans %= m;
		}
		System.out.println(ans);
	}
}
0