結果

問題 No.822 Bitwise AND
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-11-04 10:29:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 86,848 KB
実行使用メモリ 76,960 KB
最終ジャッジ日時 2023-09-29 15:41:20
合計ジャッジ時間 5,683 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 535 ms
76,764 KB
testcase_01 AC 59 ms
71,284 KB
testcase_02 WA -
testcase_03 AC 58 ms
71,200 KB
testcase_04 AC 778 ms
76,780 KB
testcase_05 AC 350 ms
76,960 KB
testcase_06 AC 567 ms
76,844 KB
testcase_07 AC 775 ms
76,880 KB
testcase_08 AC 70 ms
76,552 KB
testcase_09 AC 66 ms
76,464 KB
testcase_10 AC 59 ms
71,088 KB
testcase_11 AC 59 ms
71,092 KB
testcase_12 AC 71 ms
76,356 KB
testcase_13 AC 64 ms
75,944 KB
testcase_14 AC 58 ms
71,236 KB
testcase_15 AC 455 ms
76,728 KB
testcase_16 AC 61 ms
71,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
if n < k:
    print("INF")
else:
    ans = 0
    for i in range(n * 10):
        for j in range(k + 1):
            if i & (i + j) == n:
                ans += 1
    print(ans)
0