思路:模拟题。每次&运算取最后一位加到答案中,然后不断右移即可 代码: import sys input = lambda: sys.stdin.readline().strip() import math inf = 10 ** 18 def I(): return input() def II(): return int(input()) def MII(): return map(int, input().split()) def LI(): return input().split() def LII(): return list(map(int, input().split(...