Input
输入数据中含有一些表达式(数量≤1000,长度按含有的运算计,运算符≤30),表达式的运算符只含有加、减、乘、除。表达式中每个数的精度范围在double型内,表达式中没有任何其他运算符,没有括号。
Output
对每个表达式,计算其结果。按科学计数法输出,精度按6位小数,每个结果应占独立一行。如果表达式发生除0的情况,则对该表达式直接输出“DivByZero”。
Sample Input
3+5.06-2*76-2/03+5*6+13+5+1*71+2-3*4+5/6-4*3*2*1*1+2+3+4+5
Sample Output
8.000000e+00-8.000000e+00DivByZero3.400000e+011.500000e+01-1.816667e+01
HINT
输出结果请使用printf("%e\n",ans);或者cout<<scientific<<ans<<endl;
Source
#include <iostream>
#include <algorithm>
#include <string>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <vector>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define lson ((root<<1)+1)
#define rson ((root<<1)+2)
#define MID ((l+r)>>1)
typedef long long ll;
typedef pair<int,int> P;
#define For(