题解 | 二进制位运算

二进制位运算

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')

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务