fork download
  1. s <-100000
  2. x <-runif(s)
  3. y <-runif(s)
  4. sum(x^2+y^2<=1)*4/s
  5.  
Success #stdin #stdout 0.33s 27240KB
stdin
Standard input is empty
stdout
[1] 3.13468