ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1234. Bricks

Advice
Posted by Anatoly 13 Sep 2009 15:39
I had good formula but couldn't get AC because of precision problems. So, I multiplied input by 10, put it to integers, and transformed formula to avoid "sqrt" and "/". If every variable is integer => there are no precision problems and there is AC.