結果

問題 No.175 simpleDNA
ユーザー kenkoooo
提出日時 2015-04-02 23:29:51
言語 Java
(openjdk 23)
結果
AC  
実行時間 128 ms / 1,000 ms
コード長 258 bytes
コンパイル時間 2,129 ms
コンパイル使用メモリ 73,980 KB
実行使用メモリ 54,144 KB
最終ジャッジ日時 2024-07-03 23:46:28
合計ジャッジ時間 3,696 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt() - 3;
		long S = sc.nextLong();
		long ans = (long) (Math.pow(2, N) * S);
		System.out.println(ans);

	}
}
0