結果

問題 No.939 and or
ユーザー O2MTO2MT
提出日時 2021-04-10 18:07:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 225 bytes
コンパイル時間 1,717 ms
コンパイル使用メモリ 86,612 KB
実行使用メモリ 71,484 KB
最終ジャッジ日時 2023-09-08 13:51:28
合計ジャッジ時間 4,102 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,356 KB
testcase_01 AC 69 ms
71,320 KB
testcase_02 AC 71 ms
71,072 KB
testcase_03 AC 70 ms
71,008 KB
testcase_04 AC 69 ms
71,220 KB
testcase_05 WA -
testcase_06 AC 67 ms
71,280 KB
testcase_07 AC 70 ms
71,168 KB
testcase_08 AC 72 ms
71,056 KB
testcase_09 AC 70 ms
71,200 KB
testcase_10 AC 68 ms
71,376 KB
testcase_11 AC 67 ms
71,200 KB
testcase_12 AC 69 ms
71,168 KB
testcase_13 WA -
testcase_14 AC 69 ms
71,164 KB
testcase_15 AC 70 ms
71,328 KB
testcase_16 AC 66 ms
71,012 KB
testcase_17 AC 71 ms
71,220 KB
testcase_18 AC 67 ms
71,164 KB
testcase_19 AC 68 ms
71,248 KB
testcase_20 WA -
testcase_21 AC 68 ms
71,168 KB
testcase_22 AC 69 ms
71,128 KB
testcase_23 AC 69 ms
71,056 KB
testcase_24 AC 68 ms
71,484 KB
testcase_25 AC 67 ms
71,224 KB
testcase_26 AC 71 ms
71,236 KB
testcase_27 AC 71 ms
71,200 KB
testcase_28 AC 70 ms
71,060 KB
testcase_29 WA -
testcase_30 AC 70 ms
71,312 KB
testcase_31 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int,input().split())
bitA = bin(A)[2:].zfill(31)
bitB = bin(B)[2:].zfill(31)

if A & B != A:
    print(0)
    exit()
count = 1
for i in range(len(bitA)):
    if bitA[i] != bitB[i]:
        count *= 2
print(count//2)
0