1686 简单计算
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
32M
Problem types
Allowed languages
C, C++, Java, Python
Description
计算表达式,很简单,傻瓜形式的
( a + (b + (c + d) ) + e )
其中abcde都是整数,其中的空格可能有好几个
Input
若干行,每行都是( a + (b + (c + d) ) + e )的形式
Output
计算结果
Sample
Input
( 1 + (2 + (3 + 4) ) + 5 )
( 1 + (2 + (3 + 4) ) + 5 )
Output
15
15
Source: zjut_DD
Comments