結果

問題 No.820 Power of Two
ユーザー URechaRechaURechaRecha
提出日時 2019-09-08 21:24:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 16,088 KB
最終ジャッジ日時 2023-09-09 22:44:25
合計ジャッジ時間 3,914 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def main():
    n,k=map(int,input().split())
    n,k = 2**n,2**k
    a=0
    if k == 1:
        return print(n)
    for i in range(1,n):
        if i % k ==0:
            a+=1
    return print(a)

main()
0