当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

3596:Lazy

题目描述
One of Mr.Lazy's kids which is called So Lazy and he is a pupil. As we know 'Like Father, Like Son',So Lazy and his father--Mr.Lazy is lazy where industriousness is expected.So Lazy is enjoying his summer vacation,and he is so lzay to finish his homework. He nearly forget this.Now,new term is around the corner,he feels more and more anxious day after day. He is so worry to finish his homework,he calculate very fast,and as a lazy man,he may make some mistakes.To accomplish his homework as fast as he can,he asks you (her elder bother Super Lazy) for help to check his homework.It is to say you must calculate all of his homework.As one of the most lazy people in the world.We know that you are industrious while coding,so you can solve this problem by computer program.
输入解释
Each line,there is one formula of algebra.The formula may include the following operator "+ - * / ^".(X^4 (def) X*X*X*X ),and all the numbers are real number and fit for double.Deviding 0 is illegal. Input end with the end of file.More information in sample.The length of the formula always less than 10000.
输出解释
Maybe the formula is illegal.If it is legal you must print the answer with 8 digits after dot in a single line or print "The teacher is so lazy!" in a single line.More information in sample and hint.
输入样例
(-9)
(2+8)^0.5+9
(+9)+1
3.1+4.5/(3-(2*1.5))
(+9)+89+(12*3.0*0.1/0.45)+.34+1
输出样例
-9.00000000
12.16227766
10.00000000
The teacher is so lazy!
107.34000000

提示
It is so easy,no trick exists.
来自杭电HDUOJ的附加信息
Author alpc98
Recommend zhengfeng

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-3596

最后修改于 2020-10-25T23:05:06+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 65536/32768K(Java/Others)