結果

問題 No.175 simpleDNA
ユーザー GrenacheGrenache
提出日時 2015-11-03 10:14:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 389 bytes
コンパイル時間 3,283 ms
コンパイル使用メモリ 73,004 KB
実行使用メモリ 56,216 KB
最終ジャッジ日時 2023-10-11 13:10:32
合計ジャッジ時間 5,261 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,992 KB
testcase_01 AC 126 ms
55,676 KB
testcase_02 AC 125 ms
55,816 KB
testcase_03 AC 123 ms
56,068 KB
testcase_04 AC 126 ms
53,484 KB
testcase_05 AC 126 ms
55,676 KB
testcase_06 AC 125 ms
56,216 KB
testcase_07 AC 125 ms
55,844 KB
testcase_08 AC 124 ms
55,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder175 {

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

        int l = sc.nextInt();
        int n = sc.nextInt();

        int ret = 1;
        for (int i = 0; i < l - 3; i++) {
        	ret *= 2;
        }
        
        System.out.println(ret * n);
        
        sc.close();
    }
}
0