Expression Calculator
Evaluate the given valid mathematical expression consisting of non-negative integers with operators +,*,-,/
. You may assume, the answer can be evaluated using a 64-bit signed integer. Evaluation must follow the standard mathematical rules.
Sample 0
Input
s: "1+2*6/4"
Output
4
Sample 1
Input
s: "120-190*2/5+4"
Output
48
Time Limit
1000 ms
Memory Limit
262144 KiB
Please login to submit.
Login to submit.