|
|||
Biscuit
Peter’s grandma is baking biscuits. She starts with of dough, which she first rolls out into a square of thickness . In every step, she cuts circular pieces (biscuits) of diameter from the rolled out though, in such a way that the centers of these cut out pieces form a regular square lattice. If she can’t cut out even a single piece, she stops. If she’s done with the th step, she examines , if this number is less than she stops, otherwise she continues with kneading and rolls out a square of thickness from the remaining dough. Peter’s job is to calculate from the parameters how many biscuits the grandma will be able to make.Input specificationA line with the space separated floating point numbers . Output specificationOutput a single integer: the maximal number of biscuits that can be made. Constraints
Sample input 1
Sample output 1
Sample input 2
Sample output 2
Sample input 3
Sample output 3
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |