結果

問題 No.175 simpleDNA
ユーザー kou6839kou6839
提出日時 2015-04-02 23:28:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 1,000 ms
コード長 601 bytes
コンパイル時間 1,815 ms
コンパイル使用メモリ 71,248 KB
実行使用メモリ 56,652 KB
最終ジャッジ日時 2023-09-17 01:34:25
合計ジャッジ時間 3,640 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,832 KB
testcase_01 AC 118 ms
56,368 KB
testcase_02 AC 118 ms
56,072 KB
testcase_03 AC 116 ms
56,328 KB
testcase_04 AC 118 ms
55,520 KB
testcase_05 AC 118 ms
55,852 KB
testcase_06 AC 113 ms
56,260 KB
testcase_07 AC 116 ms
56,652 KB
testcase_08 AC 117 ms
56,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main(String[] args){
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
//		int[][][] dp= new int[182][5][(int) Math.pow(2, 15)];
//		dp[0][0][0]=1;
//		for(int i=1;i<=181;i++){
//			for(int j=0;j<5;j++){
//				for(int k=0;k<Math.pow(2, 15);k++){
//					
//				}
//			}
//		}
//		while(true){
//			int n = sc.nextInt();
//			if(n==0) break;
//			
//		}
		int n = sc.nextInt();
		int a = sc.nextInt();
		String b = sc.next();
		System.out.println((int)Math.pow(2, n-b.length())*a);
		return ;
	}
}
0