結果

問題 No.411 昇順昇順ソート
ユーザー ああいいああいい
提出日時 2022-05-17 16:44:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 150 bytes
コンパイル時間 1,220 ms
コンパイル使用メモリ 86,556 KB
実行使用メモリ 71,572 KB
最終ジャッジ日時 2023-10-13 14:43:19
合計ジャッジ時間 4,393 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,116 KB
testcase_01 AC 70 ms
71,284 KB
testcase_02 AC 71 ms
71,040 KB
testcase_03 AC 69 ms
71,040 KB
testcase_04 AC 70 ms
71,520 KB
testcase_05 AC 71 ms
71,308 KB
testcase_06 AC 69 ms
71,176 KB
testcase_07 AC 70 ms
71,172 KB
testcase_08 AC 72 ms
71,040 KB
testcase_09 AC 70 ms
71,248 KB
testcase_10 AC 69 ms
71,416 KB
testcase_11 AC 69 ms
71,164 KB
testcase_12 AC 71 ms
71,404 KB
testcase_13 AC 72 ms
71,484 KB
testcase_14 AC 70 ms
71,484 KB
testcase_15 AC 70 ms
71,300 KB
testcase_16 AC 69 ms
71,200 KB
testcase_17 AC 70 ms
71,120 KB
testcase_18 AC 70 ms
71,200 KB
testcase_19 AC 69 ms
71,572 KB
testcase_20 AC 70 ms
71,368 KB
testcase_21 AC 71 ms
71,372 KB
testcase_22 AC 71 ms
71,200 KB
testcase_23 AC 70 ms
71,312 KB
testcase_24 WA -
testcase_25 AC 71 ms
71,556 KB
testcase_26 AC 71 ms
71,216 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 70 ms
71,308 KB
testcase_30 AC 70 ms
71,248 KB
testcase_31 AC 69 ms
71,248 KB
testcase_32 AC 70 ms
71,304 KB
testcase_33 AC 69 ms
71,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())

import sys

if K == 1 and N == 2:
    print(0)
    exit()
if K == N:
    print(1)
    exit()

u = N - K
print(2 ** u)
0