結果

問題 No.3150 count X which satisfies with equlation
ユーザー K2
提出日時 2025-05-20 21:40:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 554 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-06-20 02:59:33
合計ジャッジ時間 3,147 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 42
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())
ans = 1
for i in range(20):
	ab = (a >> i) & 1
	bb = (b >> i) & 1
	if ab and not bb:
		ans = 0
	elif ab and bb:
		ans <<= 1

print(ans)
0