题解 | 变幻莫测

变幻莫测

https://www.nowcoder.com/practice/5e702b6c7c114e64b5db4650d0ce0051

a,b=map(int,input().split())
if a==0 and b!=0:
    print(2)
elif a!=0 and b==0:
    print(1)
elif a==b :
    print(0)
elif a+b==0:
    print(3)
else:
    print(-1)


全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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