結果
問題 |
No.1957 Xor Min
|
ユーザー |
![]() |
提出日時 | 2022-05-27 22:07:53 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 282 bytes |
コンパイル時間 | 246 ms |
コンパイル使用メモリ | 82,184 KB |
実行使用メモリ | 65,592 KB |
最終ジャッジ日時 | 2024-09-20 15:57:29 |
合計ジャッジ時間 | 2,352 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 RE * 1 |
ソースコード
A,B = map(int,input().split()) if A == 0 and B == 0: print(0) exit() max_ = max(A,B) min_ = min(A,B) maxbin = bin(max_)[2:] minbin = bin(min_)[2:] if len(maxbin) == len(minbin): tmp = "1"*(len(minbin)-1) ans = int(tmp,2) print(ans) else: print(min_)