結果

問題 No.175 simpleDNA
ユーザー koukonkokoukonko
提出日時 2015-12-13 15:47:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 444 bytes
コンパイル時間 4,113 ms
コンパイル使用メモリ 71,376 KB
実行使用メモリ 49,408 KB
最終ジャッジ日時 2023-10-13 14:56:57
合計ジャッジ時間 4,947 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
49,340 KB
testcase_01 AC 40 ms
49,176 KB
testcase_02 AC 39 ms
49,316 KB
testcase_03 AC 38 ms
49,276 KB
testcase_04 AC 40 ms
49,408 KB
testcase_05 AC 38 ms
49,276 KB
testcase_06 AC 38 ms
49,200 KB
testcase_07 AC 38 ms
49,228 KB
testcase_08 AC 38 ms
49,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
	public static void main(String[] args) {
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		try {
			int L = Integer.parseInt(read.readLine());
			int N = Integer.parseInt(read.readLine());
			read.readLine();

			System.out.println((long) (Math.pow(2, (L - 3)) * N));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
0