結果
問題 | No.1957 Xor Min |
ユーザー |
![]() |
提出日時 | 2022-05-27 21:26:36 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 69 ms / 2,000 ms |
コード長 | 373 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 82,148 KB |
実行使用メモリ | 65,608 KB |
最終ジャッジ日時 | 2024-09-20 15:26:55 |
合計ジャッジ時間 | 2,761 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
from collections import Counter, defaultdict, dequeimport itertoolsimport reimport mathfrom functools import reduceimport operatorimport bisectfrom heapq import *import functoolsmod=998244353import sysinput=sys.stdin.readlinea,b=map(int,input().split())if a.bit_length() != b.bit_length():print(min(a,b))else:print((1 << (a.bit_length() - 1)) - 1)