题解 | 二进制位运算
二进制位运算
https://www.nowcoder.com/practice/fa89690611f84cdcaba9a843e884310b
s= input().split(' ')
x = int(s[0])
y = int(s[1])
print(x&y,x|y, sep = '\n')
使用map
x, y = map(int, input().split()) print(x&y, x|y, sep = '\n')
二进制位运算
https://www.nowcoder.com/practice/fa89690611f84cdcaba9a843e884310b
s= input().split(' ')
x = int(s[0])
y = int(s[1])
print(x&y,x|y, sep = '\n')
使用map
x, y = map(int, input().split()) print(x&y, x|y, sep = '\n')
相关推荐