結果

問題 No.939 and or
ユーザー ああいいああいい
提出日時 2021-12-07 18:27:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 10,548 KB
実行使用メモリ 8,236 KB
最終ジャッジ日時 2023-09-22 04:03:12
合計ジャッジ時間 2,462 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,744 KB
testcase_01 AC 15 ms
8,064 KB
testcase_02 WA -
testcase_03 AC 15 ms
8,192 KB
testcase_04 WA -
testcase_05 AC 15 ms
7,796 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 15 ms
8,236 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 15 ms
7,836 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 15 ms
8,132 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 16 ms
7,828 KB
testcase_21 WA -
testcase_22 AC 15 ms
8,080 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 15 ms
7,820 KB
testcase_30 AC 15 ms
8,064 KB
testcase_31 AC 15 ms
7,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
A,B = list(map(int,input().split()))

count = 0
for i in range(32):
    mask = 1 << i
    if A & mask and B & mask == 0:
        print(0)
        exit()
    if A & mask == 0 and B & mask == 1:
        count += 1
print(2 ** count)
0