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: 04 May 2025, Sun 16:54:47
© 2025 UNIQUE BIT TECHNOLOGIES PVT. LTD. All Rights Reserved.