题解 | #表达式求值#
表达式求值
http://www.nowcoder.com/practice/9566499a2e1546c0a257e885dfdbf30d
a=input()
a=a.replace("{","(")
a=a.replace("}",")")
a=a.replace("[","(")
a=a.replace("]",")")
print(int(eval(a)))
a=a.replace("{","(")
a=a.replace("}",")")
a=a.replace("[","(")
a=a.replace("]",")")
print(int(eval(a)))