結果
| 問題 | No.3149 find X which satisfies with equlation | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-05-22 04:07:43 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 38 ms / 2,000 ms | 
| コード長 | 466 bytes | 
| コンパイル時間 | 423 ms | 
| コンパイル使用メモリ | 82,772 KB | 
| 実行使用メモリ | 53,856 KB | 
| 最終ジャッジ日時 | 2025-05-22 04:07:48 | 
| 合計ジャッジ時間 | 4,195 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 44 | 
ソースコード
A,B=(int(x) for x in input().split())
a=list(bin(A))[2:][::-1]
b=list(bin(B))[2:][::-1]
for i in range(10):
    a.append(0)
    b.append(0)
res=[]
for i,j in zip(a,b):
    i = int(i)
    j = int(j)
    if i == 1 and j == 0:
        res.append(1)
    elif i == 1 and j == 1:
        res.append(0)
    elif i == 0 and j == 1:
        res.append(1)
    else:
        res.append(0)
ans=0
for i in range(len(res)):
    if res[i] == 1:
        ans += 2**(i)
print(ans)
            
            
            
        