結果

問題 No.175 simpleDNA
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-16 22:14:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 1,000 ms
コード長 289 bytes
コンパイル時間 3,071 ms
コンパイル使用メモリ 74,604 KB
実行使用メモリ 41,668 KB
最終ジャッジ日時 2024-04-17 22:56:55
合計ジャッジ時間 4,770 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
41,668 KB
testcase_01 AC 131 ms
41,248 KB
testcase_02 AC 131 ms
41,172 KB
testcase_03 AC 118 ms
40,148 KB
testcase_04 AC 113 ms
41,308 KB
testcase_05 AC 123 ms
40,280 KB
testcase_06 AC 123 ms
41,564 KB
testcase_07 AC 122 ms
41,452 KB
testcase_08 AC 124 ms
41,288 KB
権限があれば一括ダウンロードができます

ソースコード

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