← 返回 meta 的题目列表Calculator with plus, times, and power
类型:online_judge
Design a simple calculator that supports addition, multiplication, and power operations. The input is a string representing a mathematical expression and the output should be the result. Handle operator precedence and return the correct result.
Example
Input
3 + 5 * 2