计算表达式
Time Limit:1000MS Memory Limit:65536K
Total Submit:14 Accepted:7
Description
对于一个不存在括号的表达式进行计算
Input
存在多种数据,每组数据一行,表达式不存在空格
Output
输出结果
Sample Input
6/2+3+3*4
Sample Output
18
Source
计算表达式
Time Limit:1000MS Memory Limit:65536K
Total Submit:14 Accepted:7
Description
对于一个不存在括号的表达式进行计算
Input
存在多种数据,每组数据一行,表达式不存在空格
Output
输出结果
Sample Input
6/2+3+3*4
Sample Output
18
Source