結果
問題 |
No.3150 count X which satisfies with equlation
|
ユーザー |
|
提出日時 | 2025-05-20 21:26:17 |
言語 | PyPy2 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 447 bytes |
コンパイル時間 | 2,789 ms |
コンパイル使用メモリ | 77,080 KB |
実行使用メモリ | 76,324 KB |
最終ジャッジ日時 | 2025-05-20 21:26:27 |
合計ジャッジ時間 | 5,636 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 9 WA * 32 |
ソースコード
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, 30): if((a & (1 << i)) & (b & (1 << i))): ans *= 2 if((a & (1 << i)) == 1 and (b & (1 << i)) == 0): ok = False if(ok): print(ans) else: print(0) t = 1 # t = int(input()) for _ in range(t): solve()