Editorial for Mock CCC '20 Contest 1 J3 - A Geometry Problem


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

The desired area is \dfrac{xy}{4}.

To print it accurate to two decimal places, the exact area should be stored in a 64-bit integer and then either .00, .25, .50, or .75 depending on the remainder of xy divided by 4.


Comments

There are no comments at the moment.