結果

問題 No.175 simpleDNA
ユーザー htensaihtensai
提出日時 2019-12-10 14:30:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 281 bytes
コンパイル時間 2,126 ms
コンパイル使用メモリ 71,080 KB
実行使用メモリ 56,188 KB
最終ジャッジ日時 2023-09-06 07:08:59
合計ジャッジ時間 4,021 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,512 KB
testcase_01 AC 125 ms
55,696 KB
testcase_02 AC 127 ms
56,088 KB
testcase_03 AC 126 ms
56,188 KB
testcase_04 AC 126 ms
55,912 KB
testcase_05 AC 126 ms
55,840 KB
testcase_06 AC 126 ms
56,108 KB
testcase_07 AC 127 ms
56,092 KB
testcase_08 AC 127 ms
55,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long l = sc.nextInt();
        int n = sc.nextInt();
        long ans = (long)(Math.pow(2, l - 3)) * n;
        System.out.println(ans);
  }
}
0