結果

問題 No.411 昇順昇順ソート
ユーザー Daigo HIROOKADaigo HIROOKA
提出日時 2018-07-03 01:09:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 5,041 ms
コンパイル使用メモリ 73,696 KB
実行使用メモリ 56,176 KB
最終ジャッジ日時 2023-09-13 17:08:36
合計ジャッジ時間 10,447 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
56,036 KB
testcase_01 AC 126 ms
56,168 KB
testcase_02 AC 125 ms
55,972 KB
testcase_03 AC 126 ms
55,816 KB
testcase_04 AC 127 ms
55,532 KB
testcase_05 AC 126 ms
55,848 KB
testcase_06 AC 125 ms
55,948 KB
testcase_07 AC 125 ms
56,112 KB
testcase_08 AC 125 ms
55,864 KB
testcase_09 AC 124 ms
55,880 KB
testcase_10 AC 124 ms
55,720 KB
testcase_11 AC 124 ms
56,044 KB
testcase_12 AC 127 ms
56,072 KB
testcase_13 AC 125 ms
54,008 KB
testcase_14 AC 126 ms
55,444 KB
testcase_15 AC 125 ms
55,876 KB
testcase_16 AC 125 ms
55,568 KB
testcase_17 AC 125 ms
56,052 KB
testcase_18 AC 125 ms
55,724 KB
testcase_19 AC 124 ms
55,972 KB
testcase_20 AC 122 ms
55,660 KB
testcase_21 AC 123 ms
55,500 KB
testcase_22 AC 123 ms
56,016 KB
testcase_23 AC 125 ms
55,656 KB
testcase_24 WA -
testcase_25 AC 135 ms
55,716 KB
testcase_26 AC 123 ms
55,708 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 125 ms
55,992 KB
testcase_30 AC 127 ms
55,968 KB
testcase_31 AC 121 ms
55,496 KB
testcase_32 AC 123 ms
56,176 KB
testcase_33 AC 122 ms
55,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

		int n = sc.nextInt();
		int k = sc.nextInt();
		if(k == 1){
			System.out.println(0);
			return;
		}

		System.out.println((int)Math.pow(2, n-k));
	}
}
0