Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

A Weird Dragon

Limits 1s, 512 MB

We all know about Daenerys Targaryen and her three dragons. And we also know that one of those dragon love’s to eat grass. Recently a farmer of Exile of Essos complained to Daenerys that that dragon ate all grasses of his land. So, Daenerys decided to punish her son I mean that dragon. She will tie that dragon for some time.

Now, the dragon is tied with a rope in a rectangular field. The other end of that rope is in the center of that rectangular field. And the field is full with juicy grass. You are given the length of rope (RR) and length (LL) and width (WW) of rectangular field. Now, the dragon wants you to find out the area (AA) of this field where he will be able to go and eat grass. You should do this task precisely because you don't want to mess with a grass eating dragon.

Input

There can be several test cases. Each test case contains three integers, RR (1R1000001 \le R \le 100000), LL (1L100001 \le L \le 10000) and WW (1WL1 \le W \le L).

Output

You have to print AA, the required area which is described in the statement. Errors less than 10610^{-6} will be ignored.

Samples

InputOutput
200 100 80
8000.000000
InputOutput
60 120 100
10409.422430

Discussion

Statistics


72% Solution Ratio

Islam_RafatEarliest, Nov '17

smjlord068Fastest, 66.2s

Islam_RafatLightest, 131 kB

MU_yeaminShortest, 714B

Submit

Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.