摘要: 题解: 显然括号只能在*旁边(左括号在*右边,右括号在*左边)才有意义 所以枚举括号位置,表达式求值check 表达式求值偷懒用了Py的eval 1 import math 2 s="*" 3 s=s+input() 4 s=s+"*" 5 n=len(s) 6 ans=0 7 for i in r 阅读全文
posted @ 2019-03-14 00:22 幽蝶 阅读(212) 评论(0) 推荐(0) 编辑