結果
問題 |
No.939 and or
|
ユーザー |
|
提出日時 | 2021-04-10 18:08:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 1,469 ms |
コンパイル使用メモリ | 82,172 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-06-26 07:00:17 |
合計ジャッジ時間 | 2,619 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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))