結果
| 問題 | No.939 and or |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-10 18:08:48 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| + 616µs | |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 241 ms |
| コンパイル使用メモリ | 96,236 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-07-30 09:19:55 |
| 合計ジャッジ時間 | 4,204 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
ソースコード
A,B = map(int,input().split())
bitA = bin(A)[2:].zfill(31)
bitB = bin(B)[2:].zfill(31)
if A & B != A:
print(0)
exit()
count = 1
for i in range(len(bitA)):
if bitA[i] != bitB[i]:
count *= 2
print(max(1,count//2))