2、最好一样 import sys n, x = sys.stdin.readline().strip().split(' ') n, x = int(n), int(x) li = [int(i) for i in sys.stdin.readline().strip().split(' ')] class Solution: def count(self, li, x): nums = {} for i in li: if nums.get(i) is None: nums[i] = 1 else: nums[i] += 1 ix = i|x if nums.get(ix) is None: nums[ix] = 1 elif ix != i: nums[ix] += 1 return max(nums.values()) print(Solution().count(li, x)) 3、整除的数组没想出来,结果导致 4、物资采购想出来了没作完。 5、小仓的射击练习1,这就题目都没看了