結果

問題 No.939 and or
ユーザー terasa
提出日時 2022-06-01 23:01:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 479 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 54,656 KB
最終ジャッジ日時 2024-09-21 01:45:55
合計ジャッジ時間 2,849 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import pypyjit
import itertools
import heapq
import math
from collections import deque, defaultdict
import bisect

input = sys.stdin.readline
sys.setrecursionlimit(10 ** 6)
pypyjit.set_param('max_unroll_recursion=-1')


A, B = map(int, input().split())
acc = 1
for i in range(30 + 1):
    n = 1 if A & (1 << i) else 0
    m = 1 if B & (1 << i) else 0

    if n == 1 and m == 0:
        acc = 0
        break
    if n == 0 and m == 1:
        acc <<= 1
print(acc >> 1)
0