#Í. 简单计算器
简单计算器
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.
Description
读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。
Format
Input
测试输入包含T组测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。
Output
对每个测试用例输出1行,即该表达式的值,精确到小数点后2位。
Samples
2
1 + 2
4 + 2 * 5 - 7 / 11
3.00
13.36
Limitation
1s, 1024KiB for each test case.
第七届SWPU-ACM老生预选赛
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 187
- Start at
- 2022-9-19 14:00
- End at
- 2022-10-28 14:00
- Duration
- 936 hour(s)
- Host
- Partic.
- 45