結果

問題 No.175 simpleDNA
ユーザー jimanojimano
提出日時 2018-02-10 15:53:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 466 bytes
コンパイル時間 5,982 ms
コンパイル使用メモリ 74,308 KB
実行使用メモリ 37,052 KB
最終ジャッジ日時 2024-04-22 14:47:46
合計ジャッジ時間 6,688 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
37,036 KB
testcase_01 AC 59 ms
36,880 KB
testcase_02 AC 60 ms
36,972 KB
testcase_03 AC 59 ms
36,848 KB
testcase_04 AC 58 ms
36,984 KB
testcase_05 AC 59 ms
37,004 KB
testcase_06 AC 59 ms
36,620 KB
testcase_07 AC 57 ms
37,052 KB
testcase_08 AC 58 ms
36,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder;

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

public class No0175 {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int l = Integer.parseInt(br.readLine());
		int n = Integer.parseInt(br.readLine());
		String[] str = br.readLine().split(" ");
		
		System.out.println((int)Math.pow(2.0, l - 3) * n);
	}
}
0