結果

問題 No.581 XOR
ユーザー Co-3Co-3
提出日時 2020-08-24 22:01:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 150 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 24,512 KB
最終ジャッジ日時 2024-04-24 03:54:52
合計ジャッジ時間 6,598 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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