結果

問題 No.3149 find X which satisfies with equlation
ユーザー urunea
提出日時 2025-05-22 04:02:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 963 ms
コンパイル使用メモリ 82,412 KB
実行使用メモリ 53,968 KB
最終ジャッジ日時 2025-05-22 04:02:21
合計ジャッジ時間 4,465 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 36 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

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):
    if i == j:
        res.append(0)
    else:
        res.append(1)

ans=0
for i in range(len(res)):
    if res[i] == 1:
        ans += 2**(i)

print(ans)
0