Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
92659 sh25_shenpy 等价表达式 Python3 通过 35 MS 3992 KB 562 2026-07-17 11:16:52

Tests(10/10):


def r(*i): x=i[0] for j in i[1:]:x**=j return x a=193;b=input();d='';b=eval('r('+('('*(b.count(')')-b.count('('))+b+')'*(b.count('(')-b.count(')'))).replace('^',',').replace('(','(r(').replace(')','))').replace('+',')+r(').replace('-',')-r(').replace('*',')*r(')+')') for i in range(int(input())): c=input() if eval('r('+('('*(c.count(')')-c.count('('))+c+')'*(c.count('(')-c.count(')'))).replace('^',',').replace('(','(r(').replace(')','))').replace('+',')+r(').replace('-',')-r(').replace('*',')*r(')+')')==b:d+=chr(i+65) print(d)


测评信息: