結果

問題 No.175 simpleDNA
ユーザー Mcpu3Mcpu3
提出日時 2018-09-19 23:47:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 255 bytes
コンパイル時間 1,954 ms
コンパイル使用メモリ 71,684 KB
実行使用メモリ 55,968 KB
最終ジャッジ日時 2023-09-25 10:18:02
合計ジャッジ時間 3,875 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,704 KB
testcase_01 AC 124 ms
55,740 KB
testcase_02 AC 126 ms
55,748 KB
testcase_03 AC 126 ms
55,744 KB
testcase_04 AC 124 ms
55,668 KB
testcase_05 AC 125 ms
55,968 KB
testcase_06 AC 124 ms
55,784 KB
testcase_07 AC 123 ms
55,780 KB
testcase_08 AC 124 ms
55,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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