結果

問題 No.976 2 の 128 乗と M
ユーザー Mishan5055Mishan5055
提出日時 2020-02-25 17:07:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 1,779 ms
コンパイル使用メモリ 74,464 KB
実行使用メモリ 41,540 KB
最終ジャッジ日時 2024-04-21 13:43:07
合計ジャッジ時間 8,957 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
41,060 KB
testcase_01 AC 110 ms
41,064 KB
testcase_02 AC 103 ms
40,592 KB
testcase_03 AC 96 ms
39,952 KB
testcase_04 AC 110 ms
41,148 KB
testcase_05 AC 109 ms
41,308 KB
testcase_06 AC 107 ms
41,260 KB
testcase_07 AC 100 ms
40,048 KB
testcase_08 AC 111 ms
41,148 KB
testcase_09 AC 96 ms
39,844 KB
testcase_10 AC 111 ms
41,280 KB
testcase_11 AC 109 ms
41,184 KB
testcase_12 AC 98 ms
40,284 KB
testcase_13 AC 111 ms
41,200 KB
testcase_14 AC 109 ms
41,260 KB
testcase_15 AC 107 ms
41,540 KB
testcase_16 AC 107 ms
41,052 KB
testcase_17 AC 107 ms
41,016 KB
testcase_18 AC 110 ms
41,280 KB
testcase_19 AC 96 ms
39,896 KB
testcase_20 AC 109 ms
41,204 KB
testcase_21 AC 98 ms
40,608 KB
testcase_22 AC 110 ms
41,436 KB
testcase_23 AC 108 ms
41,072 KB
testcase_24 AC 111 ms
41,088 KB
testcase_25 AC 112 ms
41,160 KB
testcase_26 AC 108 ms
40,536 KB
testcase_27 AC 115 ms
40,780 KB
testcase_28 AC 121 ms
41,172 KB
testcase_29 AC 113 ms
41,344 KB
testcase_30 AC 110 ms
41,344 KB
testcase_31 AC 108 ms
41,120 KB
testcase_32 AC 111 ms
41,504 KB
testcase_33 AC 98 ms
40,024 KB
testcase_34 AC 112 ms
40,940 KB
testcase_35 AC 108 ms
41,188 KB
testcase_36 AC 108 ms
41,012 KB
testcase_37 AC 108 ms
41,448 KB
testcase_38 AC 107 ms
41,104 KB
testcase_39 AC 110 ms
41,028 KB
testcase_40 AC 109 ms
40,996 KB
testcase_41 AC 113 ms
41,120 KB
testcase_42 AC 113 ms
41,152 KB
testcase_43 AC 99 ms
39,924 KB
testcase_44 AC 101 ms
39,988 KB
testcase_45 AC 100 ms
40,112 KB
testcase_46 AC 101 ms
40,112 KB
testcase_47 AC 112 ms
41,416 KB
testcase_48 AC 104 ms
40,296 KB
testcase_49 AC 100 ms
39,928 KB
testcase_50 AC 112 ms
40,988 KB
testcase_51 AC 102 ms
39,900 KB
testcase_52 AC 107 ms
41,392 KB
testcase_53 AC 102 ms
39,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        long K=sc.nextLong();
        long ANS=2L;
        
        for(int i=0;i<127;i++){
            ANS=(ANS*2)%K;
        }
        
        System.out.println(ANS);
    }
}
0