diff --git a/LabMD_1/xnor.py b/LabMD_1/xnor.py index 66e105c..c6f9d1c 100644 --- a/LabMD_1/xnor.py +++ b/LabMD_1/xnor.py @@ -1,9 +1,2 @@ -def XNOR(a,b): - if(a == b): - return 1 - else: - return 0 - -x = input() -y = input() -print(XNOR(x,y)) +a, b = int(input()), int(input()) +print(bool((a or not b) and (not a or b)))