結果

問題 No.820 Power of Two
ユーザー fal_rndfal_rnd
提出日時 2019-11-22 01:08:21
言語 Java19
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 1,980 ms
コンパイル使用メモリ 72,000 KB
実行使用メモリ 56,268 KB
最終ジャッジ日時 2023-08-01 10:32:51
合計ジャッジ時間 3,939 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,896 KB
testcase_01 AC 122 ms
55,980 KB
testcase_02 AC 121 ms
55,604 KB
testcase_03 AC 120 ms
55,556 KB
testcase_04 AC 121 ms
55,888 KB
testcase_05 AC 121 ms
55,608 KB
testcase_06 AC 120 ms
55,544 KB
testcase_07 AC 121 ms
55,976 KB
testcase_08 AC 119 ms
55,748 KB
testcase_09 AC 117 ms
56,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
	public static void main(String[] $) {
		Scanner s=new Scanner(System.in);
		System.out.println((int)Math.pow(2,s.nextInt()-s.nextInt()));
	}
}
0