結果
| 問題 |
No.3150 count X which satisfies with equlation
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-20 21:32:53 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 428 bytes |
| コンパイル時間 | 754 ms |
| コンパイル使用メモリ | 77,592 KB |
| 実行使用メモリ | 76,188 KB |
| 最終ジャッジ日時 | 2025-05-20 21:33:03 |
| 合計ジャッジ時間 | 4,932 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 WA * 18 |
ソースコード
import sys
input = lambda: sys.stdin.readline().rstrip()
def solve():
a, b = map(int, input().split())
ans = 1
ok = True
for i in range(0, 5):
if((a & (1 << i)) & (b & (1 << i))):
ans *= 2
if(((a & (1 << i)) != 0) and ((b & (1 << i)) == 0)):
ok = False
if(ok):
print(ans)
else:
print(0)
t = 1
# t = int(input())
for _ in range(t):
solve()