結果

問題 No.175 simpleDNA
ユーザー m4s4k1ch1m4s4k1ch1
提出日時 2015-05-28 23:57:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 422 bytes
コンパイル時間 2,024 ms
コンパイル使用メモリ 71,768 KB
実行使用メモリ 49,672 KB
最終ジャッジ日時 2023-09-20 15:05:08
合計ジャッジ時間 3,099 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,324 KB
testcase_01 AC 43 ms
49,384 KB
testcase_02 AC 43 ms
49,080 KB
testcase_03 AC 43 ms
49,236 KB
testcase_04 AC 44 ms
49,516 KB
testcase_05 AC 42 ms
49,672 KB
testcase_06 AC 43 ms
49,228 KB
testcase_07 AC 43 ms
49,384 KB
testcase_08 AC 44 ms
49,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int l = Integer.parseInt(line);
		line = br.readLine();
		int n = Integer.parseInt(line);
		br.readLine();
		
		System.out.println((int)Math.pow(2, (l - 3)) * n);
	}
}
0