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 1948. The Robot on the Line

How to use reals with range 10^18 in pascal?
Posted by Shohruh 5 Jan 2013 17:04
can anybody explain me how to use reals with big range like 10^18 or 10^19 more precisely in pascal?
Re: How to use reals with range 10^18 in pascal?
If you need real numbers with best affordable precision - use long double ("extended" in pascal).

Edited by author 06.01.2013 23:12
Re: How to use reals with range 10^18 in pascal?
Posted by Shohruh 6 Jan 2013 23:52
I knew the solution was k=1 or trunc((1+12*b*b/(a*a)-3*c/a)). but i could not take precision.
Vedernikoff 'Goryinyich' Sergey (HSE: АОП) wrote 6 January 2013 21:38
If you need real numbers with best affordable precision - use long double ("extended" in pascal).
Re: How to use reals with range 10^18 in pascal?
F**k, spoiler =(
Then you don't need real numbers here - long long (int64 in Pascal) is enough to solve it