计算(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
【来源】
一本通在线评测
C24暑假末竞速赛——数据结构专题
- Status
- Done
- Rule
- Ledo
- Problem
- 5
- Start at
- 2025-8-26 16:45
- End at
- 2025-8-27 22:45
- Duration
- 4 hour(s)
- Host
- Partic.
- 6