結果

問題 No.581 XOR
ユーザー Co-3Co-3
提出日時 2020-08-24 22:02:52
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 150 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 81,912 KB
実行使用メモリ 89,348 KB
最終ジャッジ日時 2024-04-24 03:55:03
合計ジャッジ時間 6,576 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,c = map(int,input().split())
b = 0
i = 0
while c>=0:
    i += 1
    if (c-a)%2 != 0:
        b += 2**i
    a = a//(2**i)
    c = c//(2**i)

print(b)
0