結果
問題 | No.175 simpleDNA |
ユーザー |
![]() |
提出日時 | 2015-04-02 23:28:15 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 132 ms / 1,000 ms |
コード長 | 601 bytes |
コンパイル時間 | 2,092 ms |
コンパイル使用メモリ | 73,812 KB |
実行使用メモリ | 54,376 KB |
最終ジャッジ日時 | 2024-07-03 23:46:04 |
合計ジャッジ時間 | 3,583 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
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 ; } }