結果
問題 | No.1957 Xor Min |
ユーザー | 8nd5t |
提出日時 | 2022-05-27 21:27:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 151 ms / 2,000 ms |
コード長 | 544 bytes |
コンパイル時間 | 1,330 ms |
コンパイル使用メモリ | 81,496 KB |
実行使用メモリ | 84,944 KB |
最終ジャッジ日時 | 2023-10-20 19:53:06 |
合計ジャッジ時間 | 6,326 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 146 ms
84,912 KB |
testcase_01 | AC | 140 ms
84,912 KB |
testcase_02 | AC | 142 ms
84,912 KB |
testcase_03 | AC | 147 ms
84,916 KB |
testcase_04 | AC | 139 ms
84,912 KB |
testcase_05 | AC | 141 ms
84,916 KB |
testcase_06 | AC | 151 ms
84,916 KB |
testcase_07 | AC | 144 ms
84,936 KB |
testcase_08 | AC | 143 ms
84,912 KB |
testcase_09 | AC | 147 ms
84,912 KB |
testcase_10 | AC | 144 ms
84,912 KB |
testcase_11 | AC | 139 ms
84,912 KB |
testcase_12 | AC | 147 ms
84,940 KB |
testcase_13 | AC | 146 ms
84,944 KB |
testcase_14 | AC | 143 ms
84,916 KB |
testcase_15 | AC | 142 ms
84,912 KB |
testcase_16 | AC | 144 ms
84,916 KB |
testcase_17 | AC | 138 ms
84,912 KB |
testcase_18 | AC | 137 ms
84,912 KB |
testcase_19 | AC | 146 ms
84,912 KB |
testcase_20 | AC | 147 ms
84,912 KB |
testcase_21 | AC | 142 ms
84,936 KB |
testcase_22 | AC | 144 ms
84,912 KB |
testcase_23 | AC | 143 ms
84,912 KB |
testcase_24 | AC | 138 ms
84,912 KB |
testcase_25 | AC | 147 ms
84,916 KB |
testcase_26 | AC | 144 ms
84,916 KB |
testcase_27 | AC | 143 ms
84,912 KB |
ソースコード
from collections import Counter,defaultdict,deque from heapq import heappop,heappush,heapify from bisect import bisect_left,bisect_right import sys,math,itertools,pprint,fractions sys.setrecursionlimit(10**8) mod = 10**9+7 INF = float('inf') def inp(): return int(sys.stdin.readline()) def inpl(): return list(map(int, sys.stdin.readline().split())) def inpl_1(): return list(map(lambda x:int(x)-1, sys.stdin.readline().split())) def err(x): print(x); exit() a,b = inpl() if a<b: a,b = b,a ln = len(bin(a)[2:]) print(min(pow(2,ln-1)-1, b))