PIVAL - Digits of Pi

In this problem you have to find as many digits of PI as possible.


Output must contain as many digits of PI as possible (not more than 1000000).


The score awarded to your program will be the first position of the digit where the first difference occured.



will be awarded with 33 points.

hide comments
numerix: 2014-10-17 19:18:29

@Robert Gerbicz: Your Python solution is really (really!) impressive!
(gerrob): Thanks! It could be still hard to reach 1m in python, though not tried all of my tricks in this language.

Last edit: 2014-10-17 19:30:18
Rishabh Roy: 2014-10-12 01:00:21

my solution run in 0.0 i got 800 digits of pi correct

Mitch Schwartz: 2014-10-06 21:08:08

Hrm, the cluster change to Cube changes the problem quite radically. Robert Gerbicz's very commanding lead isn't distinguishable anymore against much slower codes. It is really not desirable. I will write to an admin and/or the problem setter about it.

Another strange thing: it seems my AC submissions were rejudged but not the TLE submissions, and I don't know of any way for a problem setter to specify that kind of mass rejudge.

(There is some possibility that there would have eventually been a similar issue anyway if Pike and/or Haskell were upgraded to newer versions, as many have requested on the forum.)

Last edit: 2014-10-07 08:41:04
Mitch Schwartz: 2014-07-01 00:45:41

@Sartaj: The point value here is calculated as your score divided by top score. You have gotten a small fraction of a point, not enough to increase your overall score to the next 0.1 increment. (I believe rounding occurs at the end, so if you have 0.049 points overall then it will register as 0 points, but if you make a 0.002 improvement in any problem then your total of 0.051 points will register as 0.1.)

Last edit: 2014-07-01 00:54:17
Tizen: 2014-06-30 22:20:52

Its given that the points awarded will be RELATIVE to the top score. What does this exactly mean?
My score is 4K n the best score is 890K, n i have got no points. What should be the least score to get points?

Last edit: 2014-06-30 22:23:43
KICK: 2014-06-14 08:05:07

i am new to SPOJ
i am getting 801
what does that mean?

Steven Hans Limantoro: 2014-05-29 15:45:13

If I got 0, what is the meaning of this?

Michooool: 2014-03-10 12:38:31

I have not get any points ... just written 3895

Last edit: 2014-03-10 12:39:42
Alexandre Henrique Afonso Campos: 2014-01-12 20:20:14


The points to your account are relative to the best score. This is explained in the tutorial session.

Archangel: 2013-12-23 23:18:59

i got 17, and no points in my account..can someone explain me what it means that points will be awarded?

Added by:Roman Sol
Time limit:5s
Source limit:4096B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: CLPS LISP clisp LISP sbcl ERL JS-RHINO
Resource:ZCon 2005