解题思路:
基础if else语句
注意事项:
无
参考代码:
list1 = list(map(int,input().split())) if list1[0] == 0: if list1[1] == 0: print(0) elif list1[1] == 1: print(-1) else: print(1) elif list1[0] == 1: if list1[1] == 0: print(1) elif list1[1] == 1: print(0) else: print(-1) else: if list1[1] == 0: print(-1) elif list1[1] == 1: print(1) else: print(0)
0.0分
0 人评分