結果

問題 No.976 2 の 128 乗と M
ユーザー joybeeeejoybeeee
提出日時 2020-05-15 20:47:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 2,262 ms
コンパイル使用メモリ 73,972 KB
実行使用メモリ 57,756 KB
最終ジャッジ日時 2023-10-19 11:18:44
合計ジャッジ時間 11,665 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
57,524 KB
testcase_01 AC 135 ms
57,544 KB
testcase_02 AC 134 ms
57,308 KB
testcase_03 AC 131 ms
57,160 KB
testcase_04 AC 132 ms
57,528 KB
testcase_05 AC 135 ms
57,452 KB
testcase_06 AC 138 ms
57,560 KB
testcase_07 AC 137 ms
55,680 KB
testcase_08 AC 135 ms
57,556 KB
testcase_09 AC 134 ms
57,164 KB
testcase_10 AC 134 ms
57,160 KB
testcase_11 AC 138 ms
57,480 KB
testcase_12 AC 132 ms
57,660 KB
testcase_13 AC 135 ms
57,524 KB
testcase_14 AC 137 ms
57,660 KB
testcase_15 AC 139 ms
57,536 KB
testcase_16 AC 133 ms
57,508 KB
testcase_17 AC 131 ms
57,440 KB
testcase_18 AC 133 ms
57,116 KB
testcase_19 AC 133 ms
57,212 KB
testcase_20 AC 135 ms
57,532 KB
testcase_21 AC 131 ms
57,756 KB
testcase_22 AC 132 ms
57,496 KB
testcase_23 AC 132 ms
57,532 KB
testcase_24 AC 133 ms
57,524 KB
testcase_25 AC 131 ms
57,528 KB
testcase_26 AC 139 ms
57,572 KB
testcase_27 AC 137 ms
57,548 KB
testcase_28 AC 133 ms
57,440 KB
testcase_29 AC 134 ms
57,524 KB
testcase_30 AC 134 ms
57,432 KB
testcase_31 AC 134 ms
57,544 KB
testcase_32 AC 134 ms
57,668 KB
testcase_33 AC 134 ms
57,500 KB
testcase_34 AC 132 ms
57,472 KB
testcase_35 AC 133 ms
57,504 KB
testcase_36 AC 132 ms
57,232 KB
testcase_37 AC 133 ms
57,532 KB
testcase_38 AC 132 ms
55,676 KB
testcase_39 AC 136 ms
57,672 KB
testcase_40 AC 135 ms
57,492 KB
testcase_41 AC 131 ms
57,436 KB
testcase_42 AC 131 ms
57,432 KB
testcase_43 AC 132 ms
57,524 KB
testcase_44 AC 132 ms
57,536 KB
testcase_45 AC 132 ms
57,524 KB
testcase_46 AC 135 ms
57,628 KB
testcase_47 AC 135 ms
57,468 KB
testcase_48 AC 133 ms
57,304 KB
testcase_49 AC 133 ms
57,504 KB
testcase_50 AC 130 ms
57,600 KB
testcase_51 AC 131 ms
57,160 KB
testcase_52 AC 131 ms
57,444 KB
testcase_53 AC 132 ms
57,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      long m = sc.nextLong();

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