結果

問題 No.175 simpleDNA
ユーザー k_kadorak_kadora
提出日時 2015-05-27 14:56:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 326 bytes
コンパイル時間 3,434 ms
コンパイル使用メモリ 72,976 KB
実行使用メモリ 55,960 KB
最終ジャッジ日時 2023-09-20 15:53:55
合計ジャッジ時間 4,894 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,788 KB
testcase_01 AC 123 ms
55,960 KB
testcase_02 AC 122 ms
55,568 KB
testcase_03 AC 121 ms
55,628 KB
testcase_04 AC 121 ms
55,704 KB
testcase_05 AC 122 ms
55,948 KB
testcase_06 AC 121 ms
55,632 KB
testcase_07 AC 122 ms
55,656 KB
testcase_08 AC 122 ms
55,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Dna{
	public static void main(String[] arg){
		Scanner sc = new Scanner(System.in);
		int l,n,res;
		l = sc.nextInt();
		n = sc.nextInt();
		String[] s = new String[n];
		for(int i = 0;i<n;i++){
			s[i] = sc.next();
		}
		l = l -3;
		res = n*(int)Math.pow(2,l);
		System.out.println(res);
	}
}
0