#43663: PYTHON解 簡單解


suyueh (suyueh)

學校 : 不指定學校
編號 : 272111
來源 : [101.12.160.127]
最後登入時間 :
2024-11-21 22:51:47
c461. apcs 邏輯運算子 (Logic Operators) -- apcs | From: [101.10.44.86] | 發表日期 : 2024-10-23 22:24

a,b,c=map(int,input().split()) if a==0 and b==0: if c==0: print("AND\n""OR\n""XOR") else: print("IMPOSSIBLE") elif a!=0 and b==0: if c==0: print("AND") else: print("OR\n""XOR") elif a==0 and b!=0: if c==0: print("AND") else: print("OR\n""XOR") else: if c==0: print("XOR") else: print("AND\n""OR")

 
ZeroJudge Forum