結果
問題 | No.1957 Xor Min |
ユーザー |
|
提出日時 | 2022-06-12 22:14:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 369 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 82,736 KB |
実行使用メモリ | 53,912 KB |
最終ジャッジ日時 | 2024-09-24 08:16:55 |
合計ジャッジ時間 | 2,278 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
import sysinput = lambda: sys.stdin.readline().rstrip()def get_max_beki(x) -> int:"Return max(k which 2**k <= x)."# assert x >= 0ret = 0while 2**(ret+1) <= x:ret += 1return ret##################a, b = map(int, input().split())if a > b:a, b = b, aaa = get_max_beki(a)bb = get_max_beki(b)if aa < bb:print(a)else:print(2**aa - 1)