提出 #76930273


ソースコード 拡げる

A,B = map(int, input().split())

a = []
b = []

while (A//2) == 0:
  a.append(A%2)
  A = A//2

while (B//2) == 0:
  a.append(B%2)
  B = B//2

a = a.reverse()
b = b.reverse()
C = []
for i in range(len(A)):
  C.append(b[i]-a[i])
C = C.reverse()

for j in range(C):
  if C[i]==-1:
    C[i] += 2
    
print(C)

提出情報

提出日時
問題 B - Bitwise Exclusive Or
ユーザ 5959
言語 Python (CPython 3.13.7)
得点 0
コード長 329 Byte
結果 RE
実行時間 > 2000 ms
メモリ 226672 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 0 / 100
結果
RE × 2
TLE × 1
RE × 9
セット名 テストケース
Sample sample_01.txt, sample_02.txt
All hand_01.txt, hand_02.txt, hand_03.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, sample_01.txt, sample_02.txt
ケース名 結果 実行時間 メモリ
hand_01.txt RE 22 ms 11540 KiB
hand_02.txt RE 21 ms 11436 KiB
hand_03.txt TLE > 2000 ms 226672 KiB
random_01.txt RE 22 ms 11616 KiB
random_02.txt RE 22 ms 11476 KiB
random_03.txt RE 21 ms 11532 KiB
random_04.txt RE 21 ms 11540 KiB
random_05.txt RE 21 ms 11520 KiB
sample_01.txt RE 21 ms 11616 KiB
sample_02.txt RE 21 ms 11628 KiB