結果

問題 No.939 and or
ユーザー neterukun
提出日時 2019-12-09 01:07:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2025-01-03 00:15:16
合計ジャッジ時間 2,646 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())

ans = 0
for i in range(32):
    if (a >> i & 1) and not (b >> i & 1):
        print(0)
        exit()
    if not (a >> i & 1) and (b >> i & 1):
        ans += 1
print(2**ans // 2)
0