結果

問題 No.175 simpleDNA
ユーザー yagi2yagi2
提出日時 2017-04-24 12:38:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 296 bytes
コンパイル時間 2,016 ms
コンパイル使用メモリ 71,316 KB
実行使用メモリ 56,284 KB
最終ジャッジ日時 2023-10-11 13:02:38
合計ジャッジ時間 4,002 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,720 KB
testcase_01 AC 118 ms
55,688 KB
testcase_02 AC 118 ms
55,508 KB
testcase_03 AC 119 ms
55,880 KB
testcase_04 AC 120 ms
55,804 KB
testcase_05 AC 120 ms
55,912 KB
testcase_06 AC 116 ms
55,628 KB
testcase_07 AC 117 ms
56,284 KB
testcase_08 AC 117 ms
56,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int L = Integer.parseInt(sc.next());
        int N = Integer.parseInt(sc.next());

        System.out.println((int)Math.pow(2, (L - 3)) * N);
    }
}
0