結果

問題 No.175 simpleDNA
ユーザー nCk_cvnCk_cv
提出日時 2015-04-20 17:52:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 1,000 ms
コード長 376 bytes
コンパイル時間 2,117 ms
コンパイル使用メモリ 71,300 KB
実行使用メモリ 56,052 KB
最終ジャッジ日時 2023-09-18 01:26:29
合計ジャッジ時間 3,925 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
56,004 KB
testcase_01 AC 127 ms
55,864 KB
testcase_02 AC 126 ms
55,496 KB
testcase_03 AC 126 ms
55,500 KB
testcase_04 AC 129 ms
56,052 KB
testcase_05 AC 127 ms
55,500 KB
testcase_06 AC 128 ms
55,872 KB
testcase_07 AC 128 ms
55,736 KB
testcase_08 AC 127 ms
55,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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