Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
123322 | 丁俊杰 | 数字反转 | Python3 | Accepted | 34 MS | 3756 KB | 335 | 2025-06-29 09:13:49 |
n=int(input()) for i in range(n): a,b=input().split() #先求反转的和 a1=a[::-1] b1=b[::-1] he1=int(a1)+int(b1) #再求和的反转 he2=int(a)+int(b) new_he2=str(he2)[::-1] #判断两者是否相同 if he1==int(new_he2): print(he2) else: print("NO")