結果

問題 No.175 simpleDNA
ユーザー YamaKasa
提出日時 2018-05-18 14:45:32
言語 Java
(openjdk 23)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 359 bytes
コンパイル時間 2,075 ms
コンパイル使用メモリ 74,448 KB
実行使用メモリ 41,424 KB
最終ジャッジ日時 2024-06-28 13:43:35
合計ジャッジ時間 3,882 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int L = scan.nextInt();
		int N = scan.nextInt();
		String []S = new String[N];
		for(int i = 0; i < N; i++) {
			S[i] = scan.next();
		}
		scan.close();
		int ans = (int)Math.pow(2, L - 3) * N;
		System.out.println(ans);

	}
}
0