結果

問題 No.822 Bitwise AND
ユーザー None
提出日時 2021-03-06 17:49:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 82,300 KB
実行使用メモリ 66,184 KB
最終ジャッジ日時 2024-10-08 18:13:36
合計ジャッジ時間 2,831 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K=map(int, input().split())
if N<K:
    print("INF")
else:
    cnt=0
    for x in range(10**5):
        for k in range(K+1):
            y=x+k
            if x&y==N:
                cnt+=1
    print(cnt)
0