Beakjoon&프로그래머스/파이썬
[백준/파이썬] 13234번 George Boole
현장
2023. 4. 17. 16:54
-Code
s = list(input().split())
if s[1] == "AND":
if s[0] == "false" or s[2] == "false":
print("false")
else:
print("true")
else:
if s[0] == "false" and s[2] == "false":
print("false")
else:
print("true")