408161: GYM103034 D Math Homework

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

D. Math Homeworktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

zscoder needs to complete his math homework, but he is out of time. Can you help him?

Note: Apparently his homework problems are written in a different language. I hope this won't stop you from solving the problems.

Input

The samples cover all possible types of inputs. Please check them out.

Output

Output a single real number, the answer to the homework problem. Your answer will be accepted if it is close enough to the actual answer (i.e. $$$10^{-4}$$$ relative or absolute error).

It is guaranteed that the answer fits in a C++ long double type in all the hidden testcases.

Scoring

There are $$$13$$$ hidden tests, $$$11$$$ of which are worth $$$6$$$ points each and $$$2$$$ of which are worth $$$17$$$ points (for a total of $$$100$$$ points).

ExamplesInput
fallocest(1.2345)*fallocest(1.2345)+sploop(1.2345)*sploop(1.2345)
Output
1.000000000000000
Input
strustate(12)
Output
39916800.000000000000000
Input
fabrate(tudefy(10000000000000000))
Output
4.000000000000000
Input
tudefy(fabrate(10000000000000000))
Output
8.000000000000000
Input
chaness(fallocest(4.1))*strustate(0.5)
Output
1.018848917625599
Input
ensalex(fabrate(3)-sploop(1.23))
Output
0.668343826109546
Input
holofy(1)+quendle(1)
Output
3.560982621408760
Input
ensalex(holofy(1))+fallocest(strustate(1))
Output
1.758585210885417
Input
chaness(-10)/holofy(quendle(0.2))
Output
8.003528474734495
Input
strustate(sploop(0.5))
Output
1.847498857994100
Input
strustate(ensalex(0.49))
Output
1.943784695029594
Input
fabrate(2)+ensalex(2)+fallocest(2)+sploop(2)+strustate(2)+holofy(2)+quendle(2)+tudefy(2)+chaness(2)
Output
14.699921230059308

加入题单

算法标签: