結果

問題 No.939 and or
ユーザー 💕💖💞
提出日時 2019-12-23 22:27:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-19 02:47:14
合計ジャッジ時間 2,358 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=map(lambda x:f'{int(x):032b}',input().split())
#print(A, B)
# xor
c = [(a,b) for a, b in zip(A,B) if a != b]
c1 = [p for p in c if p == ('0','1')]
c2 = [p for p in c if p == ('1', '0')]
if len(c2) > 0:
    print(0)
else:
    #print(c)
    print(2**len(c)//2)
0