S = raw_input() result=1 stack=[] for i in range(len(S)): if S[i]=='(': stack.append('(') elif S[i]==')': result *=len(stack) stack.pop() print(result)
点赞 1

相关推荐

牛客网
牛客企业服务