結果
| 問題 | No.3150 count X which satisfies with equlation | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-05-20 21:34:34 | 
| 言語 | PyPy2 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 442 bytes | 
| コンパイル時間 | 1,425 ms | 
| コンパイル使用メモリ | 76,544 KB | 
| 実行使用メモリ | 75,904 KB | 
| 最終ジャッジ日時 | 2025-05-20 21:34:50 | 
| 合計ジャッジ時間 | 5,241 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 23 WA * 18 | 
ソースコード
import sys
input = lambda: sys.stdin.readline().rstrip()
def solve():
    a, b = map(int, input().split())  
    ans = 1
    ok = True
    for i in range(0, 5):
        if(((a & (1 << i)) != 0) & ((b & (1 << i)) != 0)):
            ans *= 2
        if(((a & (1 << i)) != 0) and ((b & (1 << i)) == 0)):
            ok = False
    if(ok):
        print(ans)
    else:
        print(0)
t = 1
# t = int(input())
for _ in range(t):
    solve()
            
            
            
        