結果

問題 No.175 simpleDNA
ユーザー Daigo HIROOKADaigo HIROOKA
提出日時 2018-05-28 03:44:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 307 bytes
コンパイル時間 5,028 ms
コンパイル使用メモリ 72,604 KB
実行使用メモリ 56,032 KB
最終ジャッジ日時 2023-09-12 19:54:21
合計ジャッジ時間 7,300 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,736 KB
testcase_01 AC 123 ms
56,032 KB
testcase_02 AC 124 ms
55,812 KB
testcase_03 AC 124 ms
55,828 KB
testcase_04 AC 122 ms
55,736 KB
testcase_05 AC 121 ms
56,008 KB
testcase_06 AC 121 ms
55,672 KB
testcase_07 AC 124 ms
55,860 KB
testcase_08 AC 122 ms
55,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class No175{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int L = sc.nextInt();
		int N = sc.nextInt();
		String[] S = new String[N];
		for(int i = 0; i < N; i++){
			S[i] = sc.next();
		}
		System.out.println((int)Math.pow(2, L-3)*N);
	}
}
0