n = int(input())
result = []
for i in range(n):
temp = str(input())
if("x" in temp):
temp = temp.replace("x","*")
if("/" in temp):
temp = temp.replace("/","//")
if(eval(temp) == 24):
result.append("Yes")
else:
result.append("No")
for i in result:
print(i)
原文地址:https://www.cnblogs.com/richardodliu/p/12260090.html
时间: 2024-10-08 18:50:36