結果

問題 No.175 simpleDNA
ユーザー tsunabittsunabit
提出日時 2019-05-17 00:49:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 374 bytes
コンパイル時間 4,024 ms
コンパイル使用メモリ 74,416 KB
実行使用メモリ 57,400 KB
最終ジャッジ日時 2023-10-17 07:06:46
合計ジャッジ時間 5,694 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
57,352 KB
testcase_01 AC 112 ms
56,284 KB
testcase_02 AC 120 ms
57,328 KB
testcase_03 AC 121 ms
57,240 KB
testcase_04 AC 120 ms
57,400 KB
testcase_05 AC 123 ms
57,280 KB
testcase_06 AC 120 ms
57,356 KB
testcase_07 AC 121 ms
57,320 KB
testcase_08 AC 121 ms
57,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.ArrayList;
import java.util.Scanner;

public class No175 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner s = new Scanner(System.in);
        int l = s.nextInt();
        int n = s.nextInt();
        System.out.println((int)Math.pow(2, l-3) * n);
    }
}
0