結果

問題 No.820 Power of Two
ユーザー masato-fullmoonmasato-fullmoon
提出日時 2019-07-26 16:35:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 168 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 7,864 KB
最終ジャッジ日時 2023-09-15 00:24:12
合計ジャッジ時間 4,534 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,864 KB
testcase_01 AC 16 ms
7,812 KB
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

max_value = pow(2,N)
div = pow(2,K)

counter = 0
for x in range(1,max_value+1):
    if x%div == 0:
        counter += 1

print(counter)
0