def check(s1, s2): for i in range(10): for pos in range(len(s1) + 1): if (pos == 0 and i == 0)&nbs***bsp;(i == 0 and not ('0&(30533)
#39; <= s1[pos - 1] <= '9')): continue tmp = s1[:pos] + str(i) + s1[pos:] if eval(tmp) == eval(s2): return True return False T = int(input()) for _ in range(T): s = input() s = s.replace(' &(30184)
#39;, '') left, right = s.split('=&(31354)#39;) if eval(left) == eval(right): print("Yes") else: if check(left, right)&nbs***bsp;check(right, left): print("Yes") else: print("No") 大佬,可以看看这个为什么错了么,只过了9%