Code reset failed!!
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.
Ln: 1, Col: 1
Key Map: default
Login to submit.
Time: 02 Jun 2025, Mon 00:33:00
© 2025 UNIQUE BIT TECHNOLOGIES PVT. LTD. All Rights Reserved.