結果

問題 No.175 simpleDNA
ユーザー kenji_shioya
提出日時 2016-06-16 22:14:02
言語 Java
(openjdk 23)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 289 bytes
コンパイル時間 3,315 ms
コンパイル使用メモリ 74,556 KB
実行使用メモリ 41,408 KB
最終ジャッジ日時 2024-10-09 16:39:11
合計ジャッジ時間 5,364 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Exercise91{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    int l = sc.nextInt();
    int n = sc.nextInt();

    int x = l - 3;
    int y = (int)Math.pow((double)2, (double)x);
    System.out.println(y * n);
  }
}
0