結果

問題 No.976 2 の 128 乗と M
ユーザー CuriousFairy315CuriousFairy315
提出日時 2020-01-31 21:50:35
言語 Java19
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 371 bytes
コンパイル時間 1,947 ms
コンパイル使用メモリ 74,172 KB
実行使用メモリ 57,628 KB
最終ジャッジ日時 2023-10-17 09:24:19
合計ジャッジ時間 10,900 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
57,232 KB
testcase_01 AC 128 ms
57,340 KB
testcase_02 AC 128 ms
57,396 KB
testcase_03 AC 127 ms
55,624 KB
testcase_04 AC 126 ms
57,404 KB
testcase_05 AC 127 ms
57,368 KB
testcase_06 AC 127 ms
57,368 KB
testcase_07 AC 126 ms
57,348 KB
testcase_08 AC 115 ms
56,284 KB
testcase_09 AC 126 ms
57,344 KB
testcase_10 AC 127 ms
57,328 KB
testcase_11 AC 125 ms
57,368 KB
testcase_12 AC 115 ms
56,260 KB
testcase_13 AC 130 ms
57,400 KB
testcase_14 AC 128 ms
57,408 KB
testcase_15 AC 126 ms
57,404 KB
testcase_16 AC 114 ms
56,312 KB
testcase_17 AC 127 ms
57,372 KB
testcase_18 AC 125 ms
57,392 KB
testcase_19 AC 126 ms
57,628 KB
testcase_20 AC 125 ms
57,468 KB
testcase_21 AC 126 ms
57,320 KB
testcase_22 AC 127 ms
57,224 KB
testcase_23 AC 128 ms
57,396 KB
testcase_24 AC 127 ms
57,124 KB
testcase_25 AC 128 ms
55,128 KB
testcase_26 AC 126 ms
57,344 KB
testcase_27 AC 125 ms
57,212 KB
testcase_28 AC 125 ms
57,496 KB
testcase_29 AC 124 ms
57,428 KB
testcase_30 AC 128 ms
57,584 KB
testcase_31 AC 128 ms
57,404 KB
testcase_32 AC 125 ms
57,368 KB
testcase_33 AC 129 ms
57,544 KB
testcase_34 AC 126 ms
57,240 KB
testcase_35 AC 128 ms
57,328 KB
testcase_36 AC 126 ms
57,532 KB
testcase_37 AC 127 ms
57,392 KB
testcase_38 AC 124 ms
57,340 KB
testcase_39 AC 125 ms
57,548 KB
testcase_40 AC 124 ms
57,388 KB
testcase_41 AC 127 ms
57,364 KB
testcase_42 AC 124 ms
57,212 KB
testcase_43 AC 126 ms
57,552 KB
testcase_44 AC 125 ms
57,228 KB
testcase_45 AC 117 ms
56,272 KB
testcase_46 AC 128 ms
57,304 KB
testcase_47 AC 125 ms
57,256 KB
testcase_48 AC 123 ms
57,360 KB
testcase_49 AC 126 ms
57,260 KB
testcase_50 AC 126 ms
57,476 KB
testcase_51 AC 125 ms
57,628 KB
testcase_52 AC 123 ms
57,396 KB
testcase_53 AC 125 ms
57,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        new Main();
    }
    
    public Main() {
        try (Scanner sc = new Scanner(System.in)) {
            long M = sc.nextLong();
            long ans = 1;
            for (int i = 0;i < 128;++ i) ans = ans * 2 % M;
            System.out.println(ans);
        }
    }
}
0