I had problems with precision in PASCAL.
My submissions:

Pyramids - AC
Sphere in a tetrahedron - WA
Triangle from centroid - WA
Family - WA

In all problems I used Extended, and on all my tests my solution gave the true answer.
If problem Pyramids to hand over Sphere is solved is necessary to attribute 4 more lines, but I receive WA.

How it is possible to receive greater precision?


Sorry for my bad English, i am from Russia.

  • created

    Mar '05
  • last reply

    Mar '05
  • 1

    reply

  • 479

    views

  • 2

    users

For problem family:
implement your own biginteger routines and calculate results using fractions, and in the end print it as double.
I haven't solved this problem myself yet, but I am sure that no build-in data type has the required precision for problem family.