結果

問題 No.3150 count X which satisfies with equlation
コンテスト
ユーザー urunea
提出日時 2025-05-22 04:11:10
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 56 ms / 2,000 ms
+ 360µs
コード長 370 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 627 ms
コンパイル使用メモリ 96,116 KB
実行使用メモリ 79,144 KB
最終ジャッジ日時 2026-07-12 12:03:17
合計ジャッジ時間 4,846 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 42
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

A,B=(int(x) for x in input().split())
a=list(bin(A))[2:][::-1]
b=list(bin(B))[2:][::-1]

ans=1
for i in range(10):
    a.append(0)
    b.append(0)

for i,j in zip(a,b):
    i = int(i)
    j = int(j)
    if i == 1 and j == 0:
        ans *= 0
    elif i == 1 and j == 1:
        ans *= 2
    elif i == 0 and j == 0:
        ans *= 1
    else:
        ans *= 1

print(ans)
0