結果

問題 No.175 simpleDNA
ユーザー yun_appyun_app
提出日時 2016-05-12 19:24:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 554 bytes
コンパイル時間 2,319 ms
コンパイル使用メモリ 74,752 KB
実行使用メモリ 50,380 KB
最終ジャッジ日時 2024-04-15 15:23:34
合計ジャッジ時間 3,189 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
50,196 KB
testcase_01 AC 57 ms
50,244 KB
testcase_02 AC 55 ms
50,132 KB
testcase_03 AC 60 ms
50,256 KB
testcase_04 AC 57 ms
50,016 KB
testcase_05 AC 57 ms
50,196 KB
testcase_06 AC 58 ms
49,940 KB
testcase_07 AC 57 ms
50,064 KB
testcase_08 AC 58 ms
50,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Long n = Long.parseLong(br.readLine());
        Long m = Long.parseLong(br.readLine());
        System.out.println((long)Math.pow(2,n-3)*m);
        
    }

}
0