結果
| 問題 | No.939 and or |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-02 00:34:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 441 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-05-16 04:11:36 |
| 合計ジャッジ時間 | 2,438 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 WA * 5 |
ソースコード
A, B = map(int, input().split())
ans = 1
for i in range(31):
if (A >> i & 1) == 1 and (B >> i & 1) == 0:
ans = 0
elif (A >> i & 1) == 0 and (B >> i & 1) == 1:
ans *= 2
print(ans // 2)