結果

問題 No.1957 Xor Min
ユーザー siganaisiganai
提出日時 2022-05-27 21:26:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 373 bytes
コンパイル時間 733 ms
コンパイル使用メモリ 81,424 KB
実行使用メモリ 63,476 KB
最終ジャッジ日時 2023-10-20 19:52:02
合計ジャッジ時間 2,746 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
63,476 KB
testcase_01 AC 52 ms
63,476 KB
testcase_02 AC 53 ms
63,476 KB
testcase_03 AC 57 ms
63,476 KB
testcase_04 AC 54 ms
63,476 KB
testcase_05 AC 54 ms
63,476 KB
testcase_06 AC 55 ms
63,476 KB
testcase_07 AC 54 ms
63,476 KB
testcase_08 AC 54 ms
63,476 KB
testcase_09 AC 53 ms
63,476 KB
testcase_10 AC 54 ms
63,476 KB
testcase_11 AC 54 ms
63,476 KB
testcase_12 AC 52 ms
63,476 KB
testcase_13 AC 53 ms
63,476 KB
testcase_14 AC 54 ms
63,476 KB
testcase_15 AC 53 ms
63,476 KB
testcase_16 AC 54 ms
63,476 KB
testcase_17 AC 53 ms
63,476 KB
testcase_18 AC 56 ms
63,476 KB
testcase_19 AC 54 ms
63,476 KB
testcase_20 AC 53 ms
63,476 KB
testcase_21 AC 55 ms
63,476 KB
testcase_22 AC 56 ms
63,476 KB
testcase_23 AC 54 ms
63,476 KB
testcase_24 AC 55 ms
63,476 KB
testcase_25 AC 55 ms
63,476 KB
testcase_26 AC 54 ms
63,476 KB
testcase_27 AC 56 ms
63,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter, defaultdict, deque
import itertools
import re
import math
from functools import reduce
import operator
import bisect
from heapq import *
import functools
mod=998244353

import sys
input=sys.stdin.readline
a,b=map(int,input().split())
if a.bit_length() != b.bit_length():
    print(min(a,b))
else:
    print((1 << (a.bit_length() - 1)) - 1)
0