题解 | 变幻莫测

变幻莫测

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

x,y = map(int,input().split())

if x==y:
    print(0)
elif y==0:
    print(1)
elif x==0:
    print(2)
elif x+y==0:
    print(3)
else:
    print(-1)

全部评论

相关推荐

点赞 评论 收藏
分享
评论
2
收藏
分享

创作者周榜

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