#E. 计算(calc)

    Type: Default 1000ms 256MiB

计算(calc)

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

【题目描述】

小明在你的帮助下,破密了Ferrari设的密码门,正要往前走,突然又出现了一个密码门,门上有一个算式,其中只有“(”,“)”,“0-9”,“+”,“-”,“*”,“/”,“^”,求出的值就是密码。小明数学学得不好,还需你帮他的忙。(“/”用整数除法,“^”为乘方运算)

【输入】

共1行,为一个算式。

【输出】

共1行,就是密码。

【输入样例】

1+(3+2)*(7^2+6*9)/(2)

【输出样例】

258

【来源】

一本通在线评测

0228c班开学考

Not Attended
Status
Done
Rule
IOI
Problem
5
Start at
2025-2-28 18:30
End at
2025-2-28 21:00
Duration
2.5 hour(s)
Host
Partic.
27