来个py3 暴力又无脑!
for i in range(int(input())): print("Yes" if eval(input().replace('x','*').replace('/','//'))==24 else "No")
帅哦
帅哦