結果

問題 No.175 simpleDNA
ユーザー kenkooookenkoooo
提出日時 2015-04-02 23:29:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 258 bytes
コンパイル時間 1,951 ms
コンパイル使用メモリ 71,448 KB
実行使用メモリ 56,716 KB
最終ジャッジ日時 2023-09-17 01:34:54
合計ジャッジ時間 3,496 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
56,716 KB
testcase_01 AC 117 ms
56,032 KB
testcase_02 AC 118 ms
55,920 KB
testcase_03 AC 119 ms
56,144 KB
testcase_04 AC 115 ms
56,340 KB
testcase_05 AC 120 ms
55,944 KB
testcase_06 AC 114 ms
56,412 KB
testcase_07 AC 115 ms
55,836 KB
testcase_08 AC 119 ms
55,992 KB
権限があれば一括ダウンロードができます

ソースコード

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