F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

Lazy

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1076    Accepted Submission(s): 369


Problem Description
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.
 

Input
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.
 

Output
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.
 

Sample Input
(-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
 

Sample Output
-9.00000000 12.16227766 10.00000000 The teacher is so lazy! 107.34000000
 

Hint
It is so easy,no trick exists.
 

Author
alpc98
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 13:27:17, Gzip enabled