結果

問題 No.175 simpleDNA
ユーザー mobius_bkstmobius_bkst
提出日時 2015-04-20 18:22:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 566 bytes
コンパイル時間 3,328 ms
コンパイル使用メモリ 73,484 KB
実行使用メモリ 49,460 KB
最終ジャッジ日時 2023-09-18 01:28:23
合計ジャッジ時間 4,388 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,240 KB
testcase_01 AC 42 ms
49,404 KB
testcase_02 AC 44 ms
49,304 KB
testcase_03 AC 43 ms
49,400 KB
testcase_04 AC 42 ms
49,300 KB
testcase_05 AC 43 ms
49,460 KB
testcase_06 AC 43 ms
49,416 KB
testcase_07 AC 43 ms
47,416 KB
testcase_08 AC 43 ms
49,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class No175 {

    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(
                    System.in));
            int L = Integer.parseInt(br.readLine());
            int N = Integer.parseInt(br.readLine());

            long ans = (long) (Math.pow(2, L - 3) * N);

            System.out.println(ans);

        } catch (Exception e) {
            System.err.println("Error:" + e.getMessage());
        }
    }

}
0