結果

問題 No.820 Power of Two
ユーザー fal_rndfal_rnd
提出日時 2019-11-22 01:08:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 2,108 ms
コンパイル使用メモリ 74,236 KB
実行使用メモリ 41,556 KB
最終ジャッジ日時 2024-04-19 10:07:06
合計ジャッジ時間 3,464 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
41,384 KB
testcase_01 AC 103 ms
41,508 KB
testcase_02 AC 99 ms
40,312 KB
testcase_03 AC 100 ms
41,432 KB
testcase_04 AC 107 ms
41,432 KB
testcase_05 AC 95 ms
41,500 KB
testcase_06 AC 112 ms
41,544 KB
testcase_07 AC 109 ms
41,404 KB
testcase_08 AC 108 ms
41,336 KB
testcase_09 AC 110 ms
41,556 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