結果
| 問題 |
No.939 and or
|
| コンテスト | |
| ユーザー |
prd_xxx
|
| 提出日時 | 2019-12-02 01:23:22 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 291 bytes |
| コンパイル時間 | 162 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-22 01:49:13 |
| 合計ジャッジ時間 | 2,305 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
ソースコード
A,B = map(int,input().split())
if A>B:
print(0)
exit()
ans = 1
less = False
for i in range(32,-1,-1):
a = (A>>i)&1
b = (B>>i)&1
if a==b: continue
if a==1 and b==0:
print(0)
exit()
if less:
ans *= 2
else:
less = True
print(ans)
prd_xxx