結果

問題 No.175 simpleDNA
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-13 07:54:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 270 bytes
コンパイル時間 1,982 ms
コンパイル使用メモリ 72,096 KB
実行使用メモリ 56,236 KB
最終ジャッジ日時 2023-08-17 04:16:10
合計ジャッジ時間 3,951 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,784 KB
testcase_01 AC 123 ms
56,236 KB
testcase_02 AC 123 ms
56,040 KB
testcase_03 AC 122 ms
55,808 KB
testcase_04 AC 122 ms
55,880 KB
testcase_05 AC 121 ms
55,832 KB
testcase_06 AC 122 ms
55,808 KB
testcase_07 AC 122 ms
55,900 KB
testcase_08 AC 122 ms
55,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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