fork download
  1. (a:r)%0=r;(a:r)%n=a:r%(n-1)
  2. d[]=1;d(f:r)=foldr(\(j,x)->(x*d(map(%j)r)-))0$zip[0..]f
Success #stdin #stdout 0.02s 3676KB
stdin
-562   40   43 -586  347
-229  177  305 -367   50
-434  343  241 -365  -86
-3   -384 -351   61 -214
-400   96 -339   25 -116
stdout
282416596900