結果

問題 No.175 simpleDNA
ユーザー spaciaspacia
提出日時 2015-12-20 10:59:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 57 ms / 1,000 ms
コード長 422 bytes
コンパイル時間 2,921 ms
コンパイル使用メモリ 74,856 KB
実行使用メモリ 53,440 KB
最終ジャッジ日時 2023-10-17 14:07:37
合計ジャッジ時間 3,469 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
52,316 KB
testcase_01 AC 56 ms
53,436 KB
testcase_02 AC 54 ms
53,412 KB
testcase_03 AC 56 ms
52,332 KB
testcase_04 AC 55 ms
52,408 KB
testcase_05 AC 55 ms
53,424 KB
testcase_06 AC 56 ms
53,412 KB
testcase_07 AC 57 ms
53,420 KB
testcase_08 AC 56 ms
53,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main175 {
	
	public static void out (Object out) {
		System.out.println(out);
	}
	
	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());
		br.readLine();
		
		out((int)Math.pow(2, l - 3) * n);
		
	}
}
0